From 95d37fb5ed885dc7f74306e9f5413a7d24964be6 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 23 Nov 2004 18:04:45 +0000 Subject: 2004-11-23 Jerry Quinn * java/awt/Button.java (AccessibleAWTButton.getAccessibleActionDescription): Explain the source of 'click'. 2004-11-23 Jerry Quinn * java/awt/Checkbox.java: Remove stub comments. 2004-11-23 Jerry Quinn * java/awt/Button.java (AccessibleAWTButton.getAccessibleActionDescription): Return 'click'. 2004-11-23 Jerry Quinn * java/awt/Checkbox.java (AccessibleAWTCheckBox): Remove todo comments. 2004-11-23 Jerry Quinn * java/awt/Checkbox.java (itemStateChanged): Implement function. (getAccessibleContext): Add AccessibleAWTCheckBox to item listeners. 2004-11-23 Jerry Quinn * java/awt/TextArea.java (AccessibleAWTTextArea, getAccessibleContext): Implement. * java/awt/TextField.java (AccessibleAWTTextField, getAccessibleContext): Implement. 2004-11-23 Jerry Quinn * java/awt/Checkbox.java (AccessibleAWTCheckBox): Implement. (getAccessibleContext): Implement. 2004-11-23 Jerry Quinn * java/awt/MenuItem.java (AccessibleAWTMenuItem): Implement. 2004-11-23 Jerry Quinn * java/awt/Choice.java (AccessibleAWTChoice): Implement. 2004-11-23 Jerry Quinn * java/awt/MenuItem.java (AccessibleAWTMenuItem): Implement. --- java/awt/TextField.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'java/awt/TextField.java') diff --git a/java/awt/TextField.java b/java/awt/TextField.java index 65a4790a9..5c84aab09 100644 --- a/java/awt/TextField.java +++ b/java/awt/TextField.java @@ -44,6 +44,9 @@ import java.awt.peer.ComponentPeer; import java.awt.peer.TextFieldPeer; import java.util.EventListener; +import javax.accessibility.AccessibleContext; +import javax.accessibility.AccessibleStateSet; + /** * This class implements a single line text entry field widget * @@ -517,4 +520,22 @@ paramString() { return (ActionListener[]) getListeners (ActionListener.class); } + + protected class AccessibleAWTTextField extends AccessibleAWTTextComponent + { + protected AccessibleAWTTextField() + { + } + + public AccessibleStateSet getAccessibleStateSet() + { + return super.getAccessibleStateSet(); + } + } + + public AccessibleContext getAccessibleContext() + { + return new AccessibleAWTTextField(); + } + } // class TextField -- cgit v1.2.1