Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans

Interface Customizer

java.lang.Object
|
+--java.beans.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:Author:See Also:

Method Summary

voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)

Add a PropertyChangeListener.
voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)

Remove a PropertyChangeListener.
voidsetObject(java.lang.Object bean)

Set the object to Customize.

Method Details

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

Add a PropertyChangeListener.

Parameters:


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

Remove a PropertyChangeListener.

Parameters:


setObject

public void setObject(java.lang.Object bean)

Set the object to Customize. This will always be a Bean that had a BeanDescriptor indicating this Customizer.

Parameters: