Interface Customizer


public interface Customizer

A customizer class provides a complete custom GUI for customizing a target Java Bean.

Each customizer should inherit from the java.awt.Component class so it can be instantiated inside an AWT dialog or panel.

Each customizer should have a null constructor.

Methods

Modifier and Type Method and Description
void addPropertyChangeListener(PropertyChangeListener listener)

Register a listener for the PropertyChange event.

void removePropertyChangeListener(PropertyChangeListener listener)

Remove a listener for the PropertyChange event.

void setObject(Object bean)

Set the object to be customized.

Methods

setObject

void setObject(Object bean)

Set the object to be customized. This method should be called only once, before the Customizer has been added to any parent AWT container.

Parameters:
bean - The object to be customized.

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)

Register a listener for the PropertyChange event. The customizer should fire a PropertyChange event whenever it changes the target bean in a way that might require the displayed properties to be refreshed.

Parameters:
listener - An object to be invoked when a PropertyChange event is fired.

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)

Remove a listener for the PropertyChange event.

Parameters:
listener - The PropertyChange listener to be removed.

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/java/beans/Customizer.html