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. package java.beans;
  8. /**
  9. * A VetoableChange event gets fired whenever a bean changes a "constrained"
  10. * property. You can register a VetoableChangeListener with a source bean
  11. * so as to be notified of any constrained property updates.
  12. */
  13. public interface VetoableChangeListener extends java.util.EventListener {
  14. /**
  15. * This method gets called when a constrained property is changed.
  16. *
  17. * @param evt a <code>PropertyChangeEvent</code> object describing the
  18. * event source and the property that has changed.
  19. * @exception PropertyVetoException if the recipient wishes the property
  20. * change to be rolled back.
  21. */
  22. void vetoableChange(PropertyChangeEvent evt)
  23. throws PropertyVetoException;
  24. }