diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-21 18:39:43 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-21 18:39:43 +0000 |
| commit | 4fe2096b349c216482c8f58157a399f7d18d597b (patch) | |
| tree | d45aac39ca70ceed8f4f56c1e535251f90cd5c85 /libjava | |
| parent | 98cf19217d70cc6e1f6e9a2c93b9e4cdaaad8cd3 (diff) | |
| download | ppe42-gcc-4fe2096b349c216482c8f58157a399f7d18d597b.tar.gz ppe42-gcc-4fe2096b349c216482c8f58157a399f7d18d597b.zip | |
* java/beans/PropertyChangeListener.java: Extends EventListener.
* java/beans/VetoableChangeListener.java: Extends EventListener.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
| -rw-r--r-- | libjava/ChangeLog | 3 | ||||
| -rw-r--r-- | libjava/java/beans/PropertyChangeListener.java | 15 | ||||
| -rw-r--r-- | libjava/java/beans/VetoableChangeListener.java | 20 |
3 files changed, 24 insertions, 14 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ad349506f80..34b917512eb 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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> diff --git a/libjava/java/beans/PropertyChangeListener.java b/libjava/java/beans/PropertyChangeListener.java index 7f1df72c50c..10259e2669c 100644 --- a/libjava/java/beans/PropertyChangeListener.java +++ b/libjava/java/beans/PropertyChangeListener.java @@ -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); } diff --git a/libjava/java/beans/VetoableChangeListener.java b/libjava/java/beans/VetoableChangeListener.java index 253d712dcce..3519f96a747 100644 --- a/libjava/java/beans/VetoableChangeListener.java +++ b/libjava/java/beans/VetoableChangeListener.java @@ -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; } |

