站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Interface Customizer - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

java.beans
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.


Method Summary
 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.
 

Method Detail

setObject

public 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

public 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

public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event.
Parameters:
listener - The PropertyChange listener to be removed.

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.