|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.accessibility.AccessibleContext java.awt.Component.AccessibleAWTComponent java.awt.Container.AccessibleAWTContainer javax.swing.JComponent.AccessibleJComponent javax.swing.text.JTextComponent.AccessibleJTextComponent javax.swing.JTextField.AccessibleJTextField javax.swing.JPasswordField.AccessibleJPasswordField
protected class JPasswordField.AccessibleJPasswordField
This class implements accessibility support for the
JPasswordField
class. It provides an implementation of the
Java Accessibility API appropriate to password field user-interface
elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
accessibleContainerHandler, accessibleFocusHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Fields inherited from interface javax.accessibility.AccessibleAction |
---|
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP |
Fields inherited from interface javax.accessibility.AccessibleText |
---|
CHARACTER, SENTENCE, WORD |
Fields inherited from interface javax.accessibility.AccessibleExtendedText |
---|
ATTRIBUTE_RUN, LINE |
Constructor Summary | |
---|---|
protected |
JPasswordField.AccessibleJPasswordField()
|
Method Summary | |
---|---|
AccessibleRole |
getAccessibleRole()
Gets the role of this object. |
AccessibleText |
getAccessibleText()
Gets the AccessibleText for the JPasswordField . |
String |
getAfterIndex(int part,
int index)
Returns the String after a given index . |
String |
getAtIndex(int part,
int index)
Returns the String at a given index . |
String |
getBeforeIndex(int part,
int index)
Returns the String before a given index . |
String |
getTextRange(int startIndex,
int endIndex)
Returns the text between two indices . |
AccessibleTextSequence |
getTextSequenceAfter(int part,
int index)
Returns the AccessibleTextSequence after a given
index . |
AccessibleTextSequence |
getTextSequenceAt(int part,
int index)
Returns the AccessibleTextSequence at a given
index . |
AccessibleTextSequence |
getTextSequenceBefore(int part,
int index)
Returns the AccessibleTextSequence before a given
index . |
Methods inherited from class javax.swing.JTextField.AccessibleJTextField |
---|
getAccessibleStateSet |
Methods inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
addPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
---|
getAccessibleAt |
Methods inherited from class javax.accessibility.AccessibleContext |
---|
firePropertyChange, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.accessibility.AccessibleComponent |
---|
addFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
Constructor Detail |
---|
protected JPasswordField.AccessibleJPasswordField()
Method Detail |
---|
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class JTextComponent.AccessibleJTextComponent
AccessibleRole
public AccessibleText getAccessibleText()
AccessibleText
for the JPasswordField
.
The returned object also implements the
AccessibleExtendedText
interface.
getAccessibleText
in class JTextComponent.AccessibleJTextComponent
AccessibleText
for the JPasswordFieldAccessibleContext
,
AccessibleContext.getAccessibleText()
,
AccessibleText
,
AccessibleExtendedText
public String getAtIndex(int part, int index)
String
at a given index
.
getAtIndex
in interface AccessibleText
getAtIndex
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
or
SENTENCE
to retrieveindex
- an index within the text
String
if part
and
index
are valid.
Otherwise, null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
public String getAfterIndex(int part, int index)
String
after a given index
.
getAfterIndex
in interface AccessibleText
getAfterIndex
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
or
SENTENCE
to retrieveindex
- an index within the text
String
if part
and
index
are valid.
Otherwise, null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
public String getBeforeIndex(int part, int index)
String
before a given index
.
getBeforeIndex
in interface AccessibleText
getBeforeIndex
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
or
SENTENCE
to retrieveindex
- an index within the text
String
if part
and
index
are valid.
Otherwise, null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
public String getTextRange(int startIndex, int endIndex)
indices
.
getTextRange
in interface AccessibleEditableText
getTextRange
in interface AccessibleExtendedText
getTextRange
in class JTextComponent.AccessibleJTextComponent
startIndex
- the start index in the textendIndex
- the end index in the text
null
is returnedpublic AccessibleTextSequence getTextSequenceAt(int part, int index)
AccessibleTextSequence
at a given
index
.
getTextSequenceAt
in interface AccessibleExtendedText
getTextSequenceAt
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
,
SENTENCE
, LINE
or ATTRIBUTE_RUN
to
retrieveindex
- an index within the text
AccessibleTextSequence
specifying the text if
part
and index
are valid. Otherwise,
null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
,
AccessibleExtendedText.LINE
,
AccessibleExtendedText.ATTRIBUTE_RUN
public AccessibleTextSequence getTextSequenceAfter(int part, int index)
AccessibleTextSequence
after a given
index
.
getTextSequenceAfter
in interface AccessibleExtendedText
getTextSequenceAfter
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
,
SENTENCE
, LINE
or ATTRIBUTE_RUN
to
retrieveindex
- an index within the text
AccessibleTextSequence
specifying the text if
part
and index
are valid. Otherwise,
null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
,
AccessibleExtendedText.LINE
,
AccessibleExtendedText.ATTRIBUTE_RUN
public AccessibleTextSequence getTextSequenceBefore(int part, int index)
AccessibleTextSequence
before a given
index
.
getTextSequenceBefore
in interface AccessibleExtendedText
getTextSequenceBefore
in class JTextComponent.AccessibleJTextComponent
part
- the CHARACTER
, WORD
,
SENTENCE
, LINE
or ATTRIBUTE_RUN
to
retrieveindex
- an index within the text
AccessibleTextSequence
specifying the text if
part
and index
are valid. Otherwise,
null
is returnedAccessibleText.CHARACTER
,
AccessibleText.WORD
,
AccessibleText.SENTENCE
,
AccessibleExtendedText.LINE
,
AccessibleExtendedText.ATTRIBUTE_RUN
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.