This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: java.beans fixes
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: java.beans fixes
- From: Tom Tromey <tromey at redhat dot com>
- Date: 21 Dec 2000 11:54:21 -0700
- Reply-To: tromey at redhat dot com
I'm checking in this patch to java.beans. It brings a couple classes
in line with the spec. I'm committing this to Classpath too.
2000-12-21 Tom Tromey <tromey@redhat.com>
* java/beans/PropertyChangeListener.java: Extends EventListener.
* java/beans/VetoableChangeListener.java: Extends EventListener.
Tom
Index: java/beans/PropertyChangeListener.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/beans/PropertyChangeListener.java,v
retrieving revision 1.1
diff -u -r1.1 PropertyChangeListener.java
--- PropertyChangeListener.java 2000/05/19 17:55:30 1.1
+++ PropertyChangeListener.java 2000/12/21 18:34:21
@@ -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 @@
package java.beans;
+import java.util.EventListener;
+
/**
** PropertyChangeListener allows a class to monitor
** properties of a Bean for changes.<P>
@@ -40,9 +42,10 @@
** @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: java/beans/VetoableChangeListener.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/beans/VetoableChangeListener.java,v
retrieving revision 1.1
diff -u -r1.1 VetoableChangeListener.java
--- VetoableChangeListener.java 2000/05/19 17:55:30 1.1
+++ VetoableChangeListener.java 2000/12/21 18:34:21
@@ -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 @@
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 @@
** @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;
}