Name

Interface java.beans.VetoableChangeListener

Description

A vetoable-change event is fired to any registered event listeners when the value of a Bean’s constrained property is going to be changed. The VetoableChangeListener interface is implemented by objects that register themselves for notifications of these proposed property value changes. These listeners throw a PropertyVetoException if they want to veto the change.

Class Definition

public interface VetoableChangeListener extends java.util.EventListener 
{
   // methods
   void vetoableChange(PropertyChangeEvent evt)
            throws PropertyVetoException;
}

See Also

PropertyChangeEvent, PropertyVetoException

Get Developing Java Beans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.