java.beans

Interface Customizer

public interface Customizer

You may explicitly provide a Customizer for your Bean class, which allows you complete control of the editing of the Bean.

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).

Since: JDK1.1

See Also: java.beans.BeanDescriptor.getCustomizerClass()

Method Summary
voidaddPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener.
voidremovePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener.
voidsetObject(Object bean)
Set the object to Customize.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener.

Parameters: l the PropertyChangeListener to add.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener.

Parameters: l the PropertyChangeListener to remove.

setObject

public void setObject(Object bean)
Set the object to Customize. This will always be a Bean that had a BeanDescriptor indicating this Customizer.

Parameters: bean the Bean to customize.