org.millstone.base.data
Interface Container.PropertySetChangeNotifier

All Known Implementing Classes:
ContainerHierarchicalWrapper, ContainerOrderedWrapper, IndexedContainer, Select
Enclosing interface:
Container

public static interface Container.PropertySetChangeNotifier

The interface for adding and removing PropertySetChangeEvent listeners. By implementing this interface a class explicitly announces that it will generate a PropertySetChangeEvent when its contents are modified. Note that the general Java convention is not to explicitly declare that a class generates events, but to directly define the addListener and removeListener methods. That way the caller of these methods has no real way of finding out if the class really will send the events, or if it just defines the methods to be able to implement an interface.


Method Summary
 void addListener(Container.PropertySetChangeListener listener)
          Registers a new Property set change listener for this Container.
 void removeListener(Container.PropertySetChangeListener listener)
          Removes a previously registered Property set change listener.
 

Method Detail

addListener

public void addListener(Container.PropertySetChangeListener listener)
Registers a new Property set change listener for this Container.

Parameters:
listener - The new Listener to be registered

removeListener

public void removeListener(Container.PropertySetChangeListener listener)
Removes a previously registered Property set change listener.

Parameters:
listener - Listener to be removed


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.