1. /*
  2. * @(#)VetoableChangeListener.java 1.11 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.beans;
  11. /**
  12. * A VetoableChange event gets fired whenever a bean changes a "constrained"
  13. * property. You can register a VetoableChangeListener with a source bean
  14. * so as to be notified of any constrained property updates.
  15. */
  16. public interface VetoableChangeListener extends java.util.EventListener {
  17. /**
  18. * This method gets called when a constrained property is changed.
  19. *
  20. * @param evt a <code>PropertyChangeEvent</code> object describing the
  21. * event source and the property that has changed.
  22. * @exception PropertyVetoException if the recipient wishes the property
  23. * change to be rolled back.
  24. */
  25. void vetoableChange(PropertyChangeEvent evt)
  26. throws PropertyVetoException;
  27. }