Commit 5ebee7d4 by Tom Tromey Committed by Tom Tromey

PropertyChangeListener.java: Extends EventListener.

	* java/beans/PropertyChangeListener.java: Extends EventListener.
	* java/beans/VetoableChangeListener.java: Extends EventListener.

From-SVN: r38421
parent 465c091c
2000-12-21 Tom Tromey <tromey@redhat.com> 2000-12-21 Tom Tromey <tromey@redhat.com>
* java/beans/PropertyChangeListener.java: Extends EventListener.
* java/beans/VetoableChangeListener.java: Extends EventListener.
* java/util/zip/Deflater.java (update, init): Now private. * java/util/zip/Deflater.java (update, init): Now private.
2000-12-21 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
......
/* java.beans.PropertyChangeListener /* java.beans.PropertyChangeListener
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */ ...@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */
package java.beans; package java.beans;
import java.util.EventListener;
/** /**
** PropertyChangeListener allows a class to monitor ** PropertyChangeListener allows a class to monitor
** properties of a Bean for changes.<P> ** properties of a Bean for changes.<P>
...@@ -40,9 +42,10 @@ package java.beans; ...@@ -40,9 +42,10 @@ package java.beans;
** @see java.beans.PropertyChangeSupport ** @see java.beans.PropertyChangeSupport
**/ **/
public interface PropertyChangeListener { public interface PropertyChangeListener extends EventListener
/** Fired after a Bean's property has changed. {
** @param e the change (containing the old and new values) /** Fired after a Bean's property has changed.
**/ ** @param e the change (containing the old and new values)
public abstract void propertyChange(PropertyChangeEvent e); **/
public abstract void propertyChange(PropertyChangeEvent e);
} }
/* java.beans.VetoableChangeListener /* java.beans.VetoableChangeListener
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */ ...@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */
package java.beans; package java.beans;
import java.util.EventListener;
/** /**
** VetoableChangeListener allows a class to monitor ** VetoableChangeListener allows a class to monitor
** proposed changes to properties of a Bean and, if ** proposed changes to properties of a Bean and, if
...@@ -52,11 +54,13 @@ package java.beans; ...@@ -52,11 +54,13 @@ package java.beans;
** @see java.beans.VetoableChangeSupport ** @see java.beans.VetoableChangeSupport
**/ **/
public interface VetoableChangeListener { public interface VetoableChangeListener extends EventListener
/** Fired before a Bean's property changes. {
** @param e the change (containing the old and new values) /** Fired before a Bean's property changes.
** @exception PropertyChangeException if the listener ** @param e the change (containing the old and new values)
** does not desire the change to be made. ** @exception PropertyChangeException if the listener
**/ ** does not desire the change to be made.
public abstract void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException; **/
public abstract void vetoableChange(PropertyChangeEvent e)
throws PropertyVetoException;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment