Package com.globalmentor.beans
Class AbstractGenericVetoableChangeListener<V>
java.lang.Object
com.globalmentor.beans.AbstractGenericVetoableChangeListener<V>
- Type Parameters:
V
- The type of property value.
- All Implemented Interfaces:
GenericVetoableChangeListener<V>
,VetoableChangeListener
,EventListener
public abstract class AbstractGenericVetoableChangeListener<V>
extends Object
implements GenericVetoableChangeListener<V>
A Java Beans vetoable change listener retrofitted to use generics to cast to proper value type.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
vetoableChange
(PropertyChangeEvent propertyChangeEvent) Called when a constrained property is changed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.globalmentor.beans.GenericVetoableChangeListener
vetoableChange
-
Constructor Details
-
AbstractGenericVetoableChangeListener
public AbstractGenericVetoableChangeListener()
-
-
Method Details
-
vetoableChange
Called when a constrained property is changed. This not-generics version calls the generic version, creating a new event if necessary.- Specified by:
vetoableChange
in interfaceVetoableChangeListener
- Parameters:
propertyChangeEvent
- 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.- See Also:
-