[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath: JMenuIterm fixes

Kaffe CVS cvs-commits at kaffe.org
Tue Aug 10 09:54:42 PDT 2004


PatchSet 5054 
Date: 2004/08/10 16:41:14
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: JMenuIterm fixes

2004-08-09  Michael Koch  <konqueror at gmx.de>

        * javax/swing/JMenuItem.java
        (getMenuDragMouseListeners): New method.
        (getMenuKeyListeners): Likewise.

Members: 
	ChangeLog:1.2612->1.2613 
	libraries/javalib/javax/swing/JMenuItem.java:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2612 kaffe/ChangeLog:1.2613
--- kaffe/ChangeLog:1.2612	Tue Aug 10 16:17:22 2004
+++ kaffe/ChangeLog	Tue Aug 10 16:41:14 2004
@@ -1,5 +1,16 @@
 2004-08-10  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/javax/swing/JMenuItem.java:
+	Resynced with GNU Classpath.
+
+	2004-08-09  Michael Koch  <konqueror at gmx.de>
+
+        * javax/swing/JMenuItem.java
+        (getMenuDragMouseListeners): New method.
+        (getMenuKeyListeners): Likewise.
+
+2004-08-10  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/javax/swing/AbstractButton.java:
 	Resynced with GNU Classpath.
 
Index: kaffe/libraries/javalib/javax/swing/JMenuItem.java
diff -u kaffe/libraries/javalib/javax/swing/JMenuItem.java:1.3 kaffe/libraries/javalib/javax/swing/JMenuItem.java:1.4
--- kaffe/libraries/javalib/javax/swing/JMenuItem.java:1.3	Sun Aug  8 19:46:03 2004
+++ kaffe/libraries/javalib/javax/swing/JMenuItem.java	Tue Aug 10 16:41:18 2004
@@ -590,6 +590,18 @@
   }
 
   /**
+   * Returns all added MenuDragMouseListener objects.
+   *
+   * @return an array of listeners
+   *
+   * @since 1.4
+   */
+  public MenuDragMouseListener[] getMenuDragMouseListeners()
+  {
+    return (MenuDragMouseListener[]) listenerList.getListeners(MenuDragMouseListener.class);
+  }
+
+  /**
    * Adds an MenuKeyListener to this menu item.  This listener will be
    * invoked when MenuKeyEvents will be fired by this menu item.
    *
@@ -608,6 +620,18 @@
   public void removeMenuKeyListener(MenuKeyListener listener)
   {
     listenerList.remove(MenuKeyListener.class, listener);
+  }
+
+  /**
+   * Returns all added MenuKeyListener objects.
+   *
+   * @return an array of listeners
+   *
+   * @since 1.4
+   */
+  public MenuKeyListener[] getMenuKeyListeners()
+  {
+    return (MenuKeyListener[]) listenerList.getListeners(MenuKeyListener.class);
   }
 
   /**




More information about the kaffe mailing list