FileDocCategorySizeDatePackage
YesNoPanelBeanInfo.javaAPI DocExample3162Sat Jan 24 10:44:38 GMT 2004je3.beans

YesNoPanelBeanInfo

public class YesNoPanelBeanInfo extends SimpleBeanInfo
This BeanInfo class provides additional information about the YesNoPanel bean in addition to what can be obtained through introspection alone.

Fields Summary
static PropertyDescriptor[]
props
Constructors Summary
Methods Summary
public java.beans.BeanDescriptorgetBeanDescriptor()
Return a descriptor for the bean itself. It specifies a customizer for the bean class. We could also add a description string here

	return new BeanDescriptor(YesNoPanel.class,
				  YesNoPanelCustomizer.class);
    
public intgetDefaultPropertyIndex()
The message property is most often customized; make it the default

 return 0; 
public java.awt.ImagegetIcon(int kind)
Return an icon for the bean. We should really check the kind argument to see what size icon the beanbox wants, but since we only have one icon to offer, we just return it and let the beanbox deal with it

 return loadImage("YesNoPanelIcon.gif"); 
public java.beans.PropertyDescriptor[]getPropertyDescriptors()
Return the property descriptors for this bean

     
	props[0].setPropertyEditorClass(YesNoPanelMessageEditor.class);
     return props; 
static java.beans.PropertyDescriptorprop(java.lang.String name, java.lang.String description)
This is a convenience method for creating PropertyDescriptor objects

	try {
	    PropertyDescriptor p =
		new PropertyDescriptor(name, YesNoPanel.class);
	    p.setShortDescription(description);
	    return p;
	}
	catch(IntrospectionException e) { return null; }