[kaffe] CVS kaffe (mkoch): libraries/javalib/javax/swing/text/JTextComponent.java
Kaffe CVS
cvs-commits at kaffe.org
Thu Dec 16 07:58:53 PST 2004
PatchSet 5648
Date: 2004/12/16 15:54:43
Author: mkoch
Branch: HEAD
Tag: (none)
Log:
2004-12-16 Michael Koch <konqueror at gmx.de>
* libraries/javalib/javax/swing/text/JTextComponent.java
(focusAccelerator): New variable.
(getFocusAccelerator): New method.
(setFocusAccelerator): Likewise.
Members:
ChangeLog:1.3193->1.3194
libraries/javalib/javax/swing/text/JTextComponent.java:1.8->1.9
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3193 kaffe/ChangeLog:1.3194
--- kaffe/ChangeLog:1.3193 Thu Dec 16 06:13:46 2004
+++ kaffe/ChangeLog Thu Dec 16 15:54:43 2004
@@ -1,3 +1,10 @@
+2004-12-16 Michael Koch <konqueror at gmx.de>
+
+ * libraries/javalib/javax/swing/text/JTextComponent.java
+ (focusAccelerator): New variable.
+ (getFocusAccelerator): New method.
+ (setFocusAccelerator): Likewise.
+
2004-12-16 Adam Heath <doogieg at brainfood.com>
* config/alpha/alpha.c, config/mips/common.h, config/mips/mips.c
Index: kaffe/libraries/javalib/javax/swing/text/JTextComponent.java
diff -u kaffe/libraries/javalib/javax/swing/text/JTextComponent.java:1.8 kaffe/libraries/javalib/javax/swing/text/JTextComponent.java:1.9
--- kaffe/libraries/javalib/javax/swing/text/JTextComponent.java:1.8 Wed Dec 15 09:16:05 2004
+++ kaffe/libraries/javalib/javax/swing/text/JTextComponent.java Thu Dec 16 15:54:45 2004
@@ -650,6 +650,7 @@
private static DefaultTransferHandler defaultTransferHandler;
private static Hashtable keymaps = new Hashtable();
private Keymap keymap;
+ private char focusAccelerator = '\0';
/**
* Get a Keymap from the global keymap table, by name.
@@ -1494,5 +1495,20 @@
ActionEvent event = new ActionEvent(this, ActionEvent.ACTION_PERFORMED,
action.getValue(Action.NAME).toString());
action.actionPerformed(event);
+ }
+
+ public void setFocusAccelerator(char newKey)
+ {
+ if (focusAccelerator == newKey)
+ return;
+
+ char oldKey = focusAccelerator;
+ focusAccelerator = newKey;
+ firePropertyChange(FOCUS_ACCELERATOR_KEY, oldKey, newKey);
+ }
+
+ public char getFocusAccelerator()
+ {
+ return focusAccelerator;
}
}
More information about the kaffe
mailing list