You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.4 KiB
66 lines
1.4 KiB
/*
|
|
* Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package java.beans;
|
|
|
|
/**
|
|
* A customizer class provides a complete custom GUI for customizing
|
|
* a target Java Bean.
|
|
* <P>
|
|
* Each customizer should inherit from the java.awt.Component class so
|
|
* it can be instantiated inside an AWT dialog or panel.
|
|
* <P>
|
|
* Each customizer should have a null constructor.
|
|
*/
|
|
|
|
public interface Customizer {
|
|
|
|
/**
|
|
* Set the object to be customized. This method should be called only
|
|
* once, before the Customizer has been added to any parent AWT container.
|
|
* @param bean The object to be customized.
|
|
*/
|
|
void setObject(Object bean);
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* @param listener An object to be invoked when a PropertyChange
|
|
* event is fired.
|
|
*/
|
|
void addPropertyChangeListener(PropertyChangeListener listener);
|
|
|
|
/**
|
|
* Remove a listener for the PropertyChange event.
|
|
*
|
|
* @param listener The PropertyChange listener to be removed.
|
|
*/
|
|
void removePropertyChangeListener(PropertyChangeListener listener);
|
|
|
|
}
|