Methods Summary |
---|
public java.beans.BeanDescriptor | getBeanDescriptor()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 int | getDefaultPropertyIndex()The message property is most often customized; make it the default return 0;
|
public java.awt.Image | getIcon(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.PropertyDescriptor | prop(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; }
|