BDK Customizers
The OurButtonCustomizer serves as an example that demonstrates the mechanics of building a customizer.
OurButtonCustomizer:
Extends java.awt.Panel (a Component subclass).
Implements the Customizer interface, and uses a PropertyChangeSupport object to manage PropertyChangeListener registration and notification.
See the bound property section for a PropertyChangeSupport description.
Implements a default constructor:
public OurButtonCustomizer()
{
setLayout(null);
}
Is associated with its target class, ExplicitButton, by the following ExplicitButtonBeanInfo code: public BeanDescriptor getBeanDescriptor()
{
return new BeanDescriptor(beanClass, customizerClass);
}
private final static Class customizerClass = OurButtonCustomizer.class;
No comments:
Post a Comment