[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI two new JMenuItem methods from gcj gui branch
From: |
Mark Wielaard |
Subject: |
[cp-patches] FYI two new JMenuItem methods from gcj gui branch |
Date: |
Tue, 10 Aug 2004 00:42:24 +0200 |
Hi,
This add two new JMenuItem methods that Michael Koch wrote for the gcj
gui branch.
2004-08-09 Michael Koch <address@hidden>
* javax/swing/JMenuItem.java
(getMenuDragMouseListeners): New method.
(getMenuKeyListeners): Likewise.
Committed.
Mark
Index: javax/swing/JMenuItem.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JMenuItem.java,v
retrieving revision 1.2.18.14
diff -u -b -B -r1.2.18.14 JMenuItem.java
--- javax/swing/JMenuItem.java 30 Jul 2004 19:48:33 -0000 1.2.18.14
+++ javax/swing/JMenuItem.java 8 Aug 2004 16:40:52 -0000
@@ -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.
*
@@ -611,6 +623,18 @@
}
/**
+ * Returns all added MenuKeyListener objects.
+ *
+ * @return an array of listeners
+ *
+ * @since 1.4
+ */
+ public MenuKeyListener[] getMenuKeyListeners()
+ {
+ return (MenuKeyListener[])
listenerList.getListeners(MenuKeyListener.class);
+ }
+
+ /**
* A string that describes this JMenuItem. Normally only used
* for debugging.
*
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI two new JMenuItem methods from gcj gui branch,
Mark Wielaard <=