home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Java in a Nutshell

Previous Chapter 23
The java.beans Package

23.21 java.beans.VetoableChangeListener (JDK 1.1)

This interface is an extension of java.util.EventListener and defines the method that a class must implement in order to be notified when a Java bean makes a change to a "constrained" property. A PropertyChangeEvent is passed to the vetoableChange() method when such a change occurs, and if the VetoableChangeListener wants to prevent the change from occurring, this method should throw a PropertyVetoException.

public abstract interface VetoableChangeListener extends EventListener {
    // Public Instance Methods
            public abstract void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException;

Passed To:

VetoableChangeSupport.addVetoableChangeListener(), VetoableChangeSupport.removeVetoableChangeListener()

Previous Home Next
java.beans.SimpleBeanInfo (JDK 1.1) Book Index java.beans.VetoableChangeSupport (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java