[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ./ChangeLog javax/swing/JViewport.jav...
From: |
Anthony Balkissoon |
Subject: |
[commit-cp] classpath ./ChangeLog javax/swing/JViewport.jav... |
Date: |
Mon, 17 Oct 2005 15:08:23 -0400 |
CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Anthony Balkissoon <address@hidden> 05/10/17 19:08:23
Modified files:
. : ChangeLog
javax/swing : JViewport.java
javax/swing/plaf/basic: BasicListUI.java BasicLookAndFeel.java
Log message:
2005-10-17 Anthony Balkissoon <address@hidden>
* javax/swing/JViewport.java:
(scrollRectToVisible): Return immediately if the View is null. Check
for contentRect being bigger than the port bounds separately in each
direction, rather than together.
* javax/swing/plaf/basic/BasicListUI.java:
(KeyHandler): Removed this private class that listened directly for
key presses. This is now handled through InputMap-ActionMap pairs.
(ActionListenerProxy): New class to wrap the Actions for this lists
ActionMap.
(ListAction): New class, the actions for keypresses on this list.
(convertModifiers): New private method converts key press modifiers to
the old style (CTRL_MASK instead of CTRL_DOWN_MASK, etc.).
(installKeyboardActions): Get the InputMap from the UIManager and
register new InputMap-ActionMap pairs, then set these as the parents
of the list's InputMap and ActionMap.
(selectNextIndex): Avoid NPE by checking if we're already at the last
index.
(selectPreviousIndex): Check if we're already at the first index.
* javax/swing/plaf/basic/BasicLookAndFeel.java:
(initComponentDefaults): Added bindings for List.focusInputMap.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5252&tr2=1.5253&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JViewport.java.diff?tr1=1.31&tr2=1.32&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicListUI.java.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?tr1=1.60&tr2=1.61&r1=text&r2=text