diff options
Diffstat (limited to 'libjava/java/awt/TextField.java')
-rw-r--r-- | libjava/java/awt/TextField.java | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/libjava/java/awt/TextField.java b/libjava/java/awt/TextField.java index 1a783e27a79..5c84aab0965 100644 --- a/libjava/java/awt/TextField.java +++ b/libjava/java/awt/TextField.java @@ -1,5 +1,5 @@ /* TextField.java -- A one line text entry field - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -40,10 +40,13 @@ package java.awt; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.peer.TextFieldPeer; 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 |