commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] classpath ./ChangeLog javax/swing/ActionMap.jav...


From: Anthony Balkissoon
Subject: [commit-cp] classpath ./ChangeLog javax/swing/ActionMap.jav...
Date: Mon, 14 Nov 2005 15:23:56 -0500

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Anthony Balkissoon <address@hidden>     05/11/14 20:23:56

Modified files:
        .              : ChangeLog 
        javax/swing    : ActionMap.java InputMap.java JMenuBar.java 
                         JMenuItem.java KeyboardManager.java 
        javax/swing/plaf/basic: BasicMenuItemUI.java 

Log message:
        2005-11-14  Anthony Balkissoon  <address@hidden>
        
        * javax/swing/ActionMap.java:
        (keys): Return null if the map is empty.
        (allKeys): Likewise.
        * javax/swing/InputMap.java:
        (keys): Return null if the map is empty.
        (allKeys): Likewise.
        * javax/swing/JMenuBar:
        (addNotify): Register the menu with the KeyboardManager.
        (processKeyBinding): New API method.
        (processKeyBindingHelper): New implementation method.
        * javax/swing/JMenuItem.java:
        (setAccelerator): Fire a PropertyChangeEvent after changing the
        accelerator.
        * javax/swing/KeyboardManager.java:
        (menuBarLookup): New field, Hashtable mapping between top-level
        containers and a Vector of the JMenuBars contained in them.
        (getHashtableForTopLevel): Changed this public method to package
        private.
        (registerEntireMap): Avoid NPE by returning early if the parameter
        is null or contains no mappings.
        (processKeyStroke): If the mapped component doesn't consume the event,
        let all JMenuBars in the top-level container have a chance at it.
        (getVectorForTopLevel): New implementation method.
        (registerJMenuBar): Likewise.
        * javax/swing/plaf/basic/BasicMenuItemUI.java:
        (propertyChangeListener): New field.
        (PropertyChangeHandler): New class to handle PropertyChangeEvents on
        the JMenuItem.
        (ClickAction): New class to implement accelerator key handling.
        (BasicMenuItemUI<init>): Instantiate the propertyChangeListener field.
        (installKeyboardActions): Implemented.
        (installListeners): Install the propertyChangeListener.
        (installUI): Call installKeyboardAcions after installing the listeners.
        (uninstallKeyboardActions): Implemented.
        (uninstallListeners): Remove the propertyChangeListener.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5583&tr2=1.5584&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/ActionMap.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/InputMap.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JMenuBar.java.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JMenuItem.java.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/KeyboardManager.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicMenuItemUI.java.diff?tr1=1.37&tr2=1.38&r1=text&r2=text





reply via email to

[Prev in Thread] Current Thread [Next in Thread]