org.millstone.base.data
Interface Property.ValueChangeNotifier

All Known Implementing Classes:
AbstractField, IndexedContainer, Label, ObjectProperty
Enclosing interface:
Property

public static interface Property.ValueChangeNotifier

The interface for adding and removing ValueChangeEvent listeners. If a Property wishes to allow other objects to receive ValueChangeEvents generated by it, it must implement this interface. 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.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Method Summary
 void addListener(Property.ValueChangeListener listener)
          Registers a new value change listener for this Property.
 void removeListener(Property.ValueChangeListener listener)
          Removes a previously registered value change listener.
 

Method Detail

addListener

public void addListener(Property.ValueChangeListener listener)
Registers a new value change listener for this Property.

Parameters:
listener - the new Listener to be registered

removeListener

public void removeListener(Property.ValueChangeListener listener)
Removes a previously registered value change listener.

Parameters:
listener - listener to be removed


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