Interface GenericPropertyChangeListener<V>

Type Parameters:
V - The type of property value.
All Superinterfaces:
EventListener, PropertyChangeListener
All Known Implementing Classes:
AbstractGenericPropertyChangeListener

public interface GenericPropertyChangeListener<V> extends PropertyChangeListener
A JavaBeans property change listener retrofitted to use generics to cast to proper value type. An implementing class must override the non-generic property change method and call the generic version, so that the property change can be noted by either method. The abstract version of this class, AbstractGenericPropertyChangeListener, will be used most often.
Author:
Garret Wilson
  • Method Details

    • propertyChange

      void propertyChange(GenericPropertyChangeEvent<V> genericPropertyChangeEvent)
      Called when a bound property is changed.
      Parameters:
      genericPropertyChangeEvent - An event object describing the event source, the property that has changed, and its old and new values.