gcc/libjava ChangeLog java/awt/Component.java ...
graydon@gcc.gnu.org
graydon@gcc.gnu.org
Tue Aug 24 22:00:00 GMT 2004
CVSROOT: /cvs/gcc
Module name: gcc
Branch: java-gui-branch
Changes by: graydon@gcc.gnu.org 2004-08-24 22:00:29
Modified files:
libjava : ChangeLog
libjava/java/awt: Component.java Container.java
DefaultFocusTraversalPolicy.java
DefaultKeyboardFocusManager.java
KeyboardFocusManager.java
libjava/javax/swing: AbstractButton.java ActionMap.java
InputMap.java JComponent.java
KeyStroke.java SwingUtilities.java
libjava/javax/swing/plaf/basic: BasicButtonListener.java
BasicButtonUI.java
BasicLookAndFeel.java
BasicTextUI.java
libjava/javax/swing/text: AbstractDocument.java
DefaultEditorKit.java
JTextComponent.java TextAction.java
Utilities.java
Log message:
2004-08-24 Graydon Hoare <graydon@redhat.com>
* java/awt/Component.java
(isFocusTraversable): Predicate on isLightweight()
(setFocusable): Set isFocusTraversableOverridden.
(requestFocus): Predicate peer dispatch on !isLightweight()
(requestFocusInWindow): Likewise.
(dispatchEventImpl): Coordinate with KeyboardFocusManager.
* java/awt/Container.java
(dispatchEventImpl): Predicate on event mask.
(LightweightDispatcher): Remove focus machinery.
* java/awt/DefaultFocusTraversalPolicy.java
(accept): Expand predicate to include isFocusable().
* java/awt/DefaultKeyboardFocusManager.java:
Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
* java/awt/KeyboardFocusManager.java
(redispatchEvent): Synchronize on event to prevent feedback.
* javax/swing/AbstractButton.java
(ButtonFocusListener): Remove class.
(init): Set focusPainted, focusable.
* javax/swing/ActionMap.java (get): Check parent for null.
* javax/swing/InputMap.java (get): Likewise.
* javax/swing/JComponent.java
(inputMap_whenFocused): New InputMap.
(inputMap_whenAncestorOfFocused): Likewise.
(inputMap_whenInFocusedWindow): Likewise.
(getActionForKeyStroke): Rewrite.
(getConditionForKeystroke): Likewise.
(ActionListenerProxy): New private class.
(setInputMap): Implement.
(getInputMap): Likewise.
(setActionMap): Likewise.
(getActionMap): Likewise.
(processComponentKeyEvent): New empty method.
(processKeyEvent): Implement.
(processKeyBinding): Likewise.
(resetKeyboardActions): Rewrite.
* javax/swing/KeyStroke.java: Rewrite.
* javax/swing/SwingUtilities.java
(notifyAction): Implement.
(replaceUIActionMap): Likewise.
(replaceUIInputMap): Likewise.
* javax/swing/plaf/basic/BasicButtonListener.java
(focusGained): Implement.
(focusLost): Repaint if focusPainted().
(installKeyboardActions): Install pressed / released actions.
(uninstallKeyboardActions): Implement.
* javax/swing/plaf/basic/BasicButtonUI.java
(focusColor): New field.
(installDefaults): Load focus color, install input map.
(installKeyboardActions): Implement.
(uninstallKeyboardActions): Likewise.
(paintFocus): Rewrite.
* javax/swing/plaf/basic/BasicLookAndFeel.java
(Button.focus): New default, midPurple.
* javax/swing/plaf/basic/BasicTextUI.java
(kit): Make static.
(installUI): Get doc from kit, load defaults.
(getKeymapName): Implement.
(createKeymap): Likewise.
(installKeyboardActions): Likewise.
(getInputMap): Likewise.
(getActionMap): Likewise.
(createActionMap): Likewise.
* javax/swing/text/AbstractDocument.java
(getStartPosition): Implement.
(getEndPosition): Likewise.
* javax/swing/text/DefaultEditorKit.java
(CopyAction): New class.
(CutAction): Likewise.
(DefaultKeyTypedAction): Likewise.
(InsertBreakAction): Likewise.
(InsertContentAction): Likewise.
(InsertTabAction): Likewise.
(PasteAction): Likewise.
(defaultActions): New static table.
(createCaret): Implement.
(getActions): Likewise.
* javax/swing/text/JTextComponent.java
(KeymapWrapper): New private class.
(KeymapActionMap): Likewise.
(DefaultKeymap): New class.
(keymaps): New static table.
(keymap): New field.
(getKeymap): Implement.
(removeKeymap): Likewise.
(addKeymap): Likewise.
(setKeymap): Likewise.
(loadKeymap): Likewise.
(getActions): Likewise.
(margin): New field.
(JTextComponent): Build and install default keymap.
* javax/swing/text/TextAction.java
(textAction): Call super properly.
(getTextComponent): Implement.
* javax/swing/text/Utilities.java
(drawTabbedText): Adjust position by ascent.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.2660.2.350&r2=1.2660.2.351
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/Component.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.37.2.19&r2=1.37.2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/Container.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.34.2.17&r2=1.34.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/DefaultFocusTraversalPolicy.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.1.54.1&r2=1.1.54.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/DefaultKeyboardFocusManager.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.1.54.9&r2=1.1.54.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/KeyboardFocusManager.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.2.24.3&r2=1.2.24.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/AbstractButton.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.5.2.15&r2=1.5.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/ActionMap.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.3.8.3&r2=1.3.8.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/InputMap.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.3.18.2&r2=1.3.18.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/JComponent.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.7.2.15&r2=1.7.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/KeyStroke.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.3.18.3&r2=1.3.18.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/SwingUtilities.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.6.2.13&r2=1.6.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/plaf/basic/BasicButtonListener.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.1.2.3&r2=1.1.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/plaf/basic/BasicButtonUI.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.6.2.8&r2=1.6.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.4.2.18&r2=1.4.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/plaf/basic/BasicTextUI.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.4.16.11&r2=1.4.16.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/text/AbstractDocument.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.3.8.16&r2=1.3.8.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/text/DefaultEditorKit.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.4.8.4&r2=1.4.8.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/text/JTextComponent.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.4.2.18&r2=1.4.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/text/TextAction.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.2.8.1&r2=1.2.8.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/text/Utilities.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.1.2.2&r2=1.1.2.3
More information about the Gcc-cvs
mailing list