]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PropertyChangeListener.java: Extends EventListener.
authorTom Tromey <tromey@redhat.com>
Thu, 21 Dec 2000 18:39:43 +0000 (18:39 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 21 Dec 2000 18:39:43 +0000 (18:39 +0000)
* java/beans/PropertyChangeListener.java: Extends EventListener.
* java/beans/VetoableChangeListener.java: Extends EventListener.

From-SVN: r38421

libjava/ChangeLog
libjava/java/beans/PropertyChangeListener.java
libjava/java/beans/VetoableChangeListener.java

index ad349506f80957e61194b2ae4a2d0cd3ca043195..34b917512eb7f6d8624e8d9be244384751870059 100644 (file)
@@ -1,5 +1,8 @@
 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.
 
 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
index 7f1df72c50c61b74715ab283789950ac5c30bcbe..10259e2669c92dec78865ea32686f5b5433e2639 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */
 
 package java.beans;
 
+import java.util.EventListener;
+
 /**
  ** PropertyChangeListener allows a class to monitor
  ** properties of a Bean for changes.<P>
@@ -40,9 +42,10 @@ package java.beans;
  ** @see java.beans.PropertyChangeSupport
  **/
 
-public interface PropertyChangeListener {
-       /** 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 interface PropertyChangeListener extends EventListener
+{
+  /** Fired after a Bean's property has changed.
+   ** @param e the change (containing the old and new values)
+   **/
+  public abstract void propertyChange(PropertyChangeEvent e);
 }
index 253d712dcce194a1286e1592a3a9dd3576f26aaf..3519f96a747c87526fcbd3e1d1e65c077c3dac3b 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -27,6 +27,8 @@ executable file might be covered by the GNU General Public License. */
 
 package java.beans;
 
+import java.util.EventListener;
+
 /**
  ** VetoableChangeListener allows a class to monitor
  ** proposed changes to properties of a Bean and, if
@@ -52,11 +54,13 @@ package java.beans;
  ** @see java.beans.VetoableChangeSupport
  **/
 
-public interface VetoableChangeListener {
-       /** Fired before a Bean's property changes.
-        ** @param e the change (containing the old and new values)
-        ** @exception PropertyChangeException if the listener
-        **            does not desire the change to be made.
-        **/
-       public abstract void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException;
+public interface VetoableChangeListener extends EventListener
+{
+  /** Fired before a Bean's property changes.
+   ** @param e the change (containing the old and new values)
+   ** @exception PropertyChangeException if the listener
+   **            does not desire the change to be made.
+   **/
+  public abstract void vetoableChange(PropertyChangeEvent e)
+    throws PropertyVetoException;
 }