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>
,java.beans.VetoableChangeListener
,java.util.EventListener
public abstract class AbstractGenericVetoableChangeListener<V> extends java.lang.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
Constructors Constructor Description AbstractGenericVetoableChangeListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
vetoableChange(java.beans.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
-
-
-
-
Method Detail
-
vetoableChange
public void vetoableChange(java.beans.PropertyChangeEvent propertyChangeEvent) throws java.beans.PropertyVetoException
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 interfacejava.beans.VetoableChangeListener
- Parameters:
propertyChangeEvent
- An event object describing the event source, the property that is changing, and its old and new values.- Throws:
java.beans.PropertyVetoException
- if the recipient wishes the property change to be rolled back.- See Also:
GenericPropertyChangeListener.propertyChange(GenericPropertyChangeEvent)
-
-