KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > beans > VetoableChangeListener


1 /*
2  * @(#)VetoableChangeListener.java 1.14 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.beans;
9
10 /**
11  * A VetoableChange event gets fired whenever a bean changes a "constrained"
12  * property. You can register a VetoableChangeListener with a source bean
13  * so as to be notified of any constrained property updates.
14  */

15 public interface VetoableChangeListener extends java.util.EventListener JavaDoc {
16     /**
17      * This method gets called when a constrained property is changed.
18      *
19      * @param evt a <code>PropertyChangeEvent</code> object describing the
20      * event source and the property that has changed.
21      * @exception PropertyVetoException if the recipient wishes the property
22      * change to be rolled back.
23      */

24     void vetoableChange(PropertyChangeEvent JavaDoc evt)
25                 throws PropertyVetoException JavaDoc;
26 }
27
Popular Tags