Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans

Interface VetoableChangeListener

java.lang.Object
|
+--java.util.EventListener
   |
   +--java.beans.VetoableChangeListener

All Implemented Interfaces:

EventListener


public interface VetoableChangeListener

implements EventListener

VetoableChangeListener allows a class to monitor proposed changes to properties of a Bean and, if desired, prevent them from occurring. A vetoableChange() event will be fired after the property change has been requested, but before it is permanent. If any listener rejects the change by throwing the PropertyChangeException, a new vetoableChange() event will be fired to all listeners who received a vetoableChange() event in the first place, informing them to revert back to the old value. Thus, the listener that threw the exception the first time should be prepared to rethrow it the second time. The value, of course, never actually changed.

Note: This class may not be reliably used to determine whether a property has actually changed. Use the PropertyChangeListener interface for that instead.

Since:Author:See Also:

Method Summary

voidvetoableChange(java.beans.PropertyChangeEvent e)

Fired before a Bean's property changes.

Method Details

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent e)

Fired before a Bean's property changes.

Parameters:

Throws: