VetoableChangeSupport.fireVetoableChange

VetoableChangeSupport.fireVetoableChange

Class Overview | Class Members | This Package | All Packages

Syntax
public void fireVetoableChange( String propertyName, Object oldValue, Object newValue ) throws PropertyVetoException
Parameters
propertyName
The programmatic name of the property that was changed.
oldValue
The old value of the property.
newValue
The new value of the property.
Description
Report a vetoable property update to any registered listeners. If anyone vetos the change, then fire a new event reverting everyone to the old value and then rethrow the PropertyVetoException.

No event is fired if old and new are equal and non-null.

Exceptions
PropertyVetoException if the recipient wishes the property change to be rolled back.