FileDocCategorySizeDatePackage
JugglerBeanInfo.javaAPI DocExample1104Sat Apr 23 22:35:42 BST 2005magicbeans.sunw.demo.juggler

JugglerBeanInfo

public class JugglerBeanInfo extends SimpleBeanInfo
The only thing we define in the Juggler BeanInfo is a GIF icon.

Fields Summary
private static final Class
beanClass
Constructors Summary
Methods Summary
public intgetDefaultPropertyIndex()

	// the index for the animationRate property.
	return 1;
    
public java.awt.ImagegetIcon(int iconKind)

	if (iconKind == BeanInfo.ICON_COLOR_16x16) {
	    java.awt.Image img = loadImage("JugglerIcon.gif");
	    return img;
	}
	return null;
    
public java.beans.PropertyDescriptor[]getPropertyDescriptors()

	try {
	    PropertyDescriptor animationRate =
		new PropertyDescriptor("animationRate", beanClass);

	    PropertyDescriptor name =
		new PropertyDescriptor("name", beanClass);

	    PropertyDescriptor juggling =
		new PropertyDescriptor("juggling", beanClass);

	    animationRate.setBound(true);
	    name.setBound(true);

	    PropertyDescriptor rv[] = { juggling, animationRate, name};
	    return rv;
	} catch( IntrospectionException e) {
	    throw new Error(e.toString());
	}