Package com.globalmentor.beans
Interface GenericVetoableChangeListener<V>
- Type Parameters:
V
- The type of property value.
- All Superinterfaces:
EventListener
,VetoableChangeListener
- All Known Implementing Classes:
AbstractGenericVetoableChangeListener
A JavaBeans vetoable 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,
AbstractGenericVetoableChangeListener
, will be used most often.- Author:
- Garret Wilson
-
Method Summary
Modifier and TypeMethodDescriptionvoid
vetoableChange
(GenericPropertyChangeEvent<V> genericPropertyChangeEvent) Called when a constrained property is changed.Methods inherited from interface java.beans.VetoableChangeListener
vetoableChange
-
Method Details
-
vetoableChange
void vetoableChange(GenericPropertyChangeEvent<V> genericPropertyChangeEvent) throws PropertyVetoException Called when a constrained property is changed.- Parameters:
genericPropertyChangeEvent
- An event object describing the event source, the property that is changing, and its old and new values.- Throws:
PropertyVetoException
- if the recipient wishes the property change to be rolled back.
-