public interface Customizer
A Customizer is meant to be embedded in an RAD tool,
and thus must be a descendant of java.awt.Component
.
It must also have a constructor with no arguments. This is the constructor that will be called by the RAD tool to instantiate the Customizer.
Over its lifetime, an instance of a Customizer will only customize one single Bean. A new instance of the Customizer will be instantiated to edit any other Beans.
The Customizer is responsible for notifying its PropertyChangeListeners of any changes that are made, according to the rules of PropertyChangeListeners (i.e. notify the clients after the property has changed).
java.beans.BeanDescriptor.getCustomizerClass()
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener.
|
void |
setObject(Object bean)
Set the object to Customize.
|
void setObject(Object bean)
bean
- the Bean to customize.void addPropertyChangeListener(PropertyChangeListener l)
l
- the PropertyChangeListener to add.void removePropertyChangeListener(PropertyChangeListener l)
l
- the PropertyChangeListener to remove.