protected class TextComponent.AccessibleAWTTextComponent extends Component.AccessibleAWTComponent implements javax.accessibility.AccessibleText, java.awt.event.TextListener
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandleraccessibleAWTComponentHandler, accessibleAWTFocusHandlerACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent| Constructor and Description |
|---|
TextComponent.AccessibleAWTTextComponent() |
| Modifier and Type | Method and Description |
|---|---|
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the role of this component.
|
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Returns a state set describing this component's state.
|
javax.accessibility.AccessibleText |
getAccessibleText()
Get any supported accessible text.
|
java.lang.String |
getAfterIndex(int part,
int index)
Returns the section of text after the index, or null if the index or part
is invalid.
|
java.lang.String |
getAtIndex(int part,
int index)
Returns the section of text at the index, or null if the index or part
is invalid.
|
java.lang.String |
getBeforeIndex(int part,
int index)
Returns the section of text before the index, or null if the index or part
is invalid.
|
int |
getCaretPosition()
Return the offset of the character.
|
javax.swing.text.AttributeSet |
getCharacterAttribute(int index)
Returns the attributes of a character at an index, or null if the index
is out of bounds.
|
Rectangle |
getCharacterBounds(int index)
Determines the bounding box of the indexed character.
|
int |
getCharCount()
Return the number of characters.
|
int |
getIndexAtPoint(Point point)
Given a point in the coordinate system of this object, return the
0-based index of the character at that point, or -1 if there is none.
|
java.lang.String |
getSelectedText()
Returns the selected text.
|
int |
getSelectionEnd()
Returns the end index of the selection.
|
int |
getSelectionStart()
Returns the start index of the selection.
|
void |
textValueChanged(java.awt.event.TextEvent event)
This method is called when the text being monitored changes.
|
addFocusListener, addPropertyChangeListener, contains, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAccessibleComponent, getAccessibleDescription, getAccessibleIndexInParent, getAccessibleName, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, removePropertyChangeListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblefirePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentpublic TextComponent.AccessibleAWTTextComponent()
public javax.accessibility.AccessibleRole getAccessibleRole()
Component.AccessibleAWTComponentgetAccessibleRole in class Component.AccessibleAWTComponentAccessibleRolepublic javax.accessibility.AccessibleStateSet getAccessibleStateSet()
Component.AccessibleAWTComponentgetAccessibleStateSet in class Component.AccessibleAWTComponentAccessibleStatepublic javax.accessibility.AccessibleText getAccessibleText()
javax.accessibility.AccessibleContextgetAccessibleText in class javax.accessibility.AccessibleContextAccessibleTextpublic int getIndexAtPoint(Point point)
javax.accessibility.AccessibleTextgetIndexAtPoint in interface javax.accessibility.AccessibleTextpoint - the point to look atpublic Rectangle getCharacterBounds(int index)
javax.accessibility.AccessibleTextgetCharacterBounds in interface javax.accessibility.AccessibleTextindex - the 0-based character indexpublic int getCharCount()
javax.accessibility.AccessibleTextgetCharCount in interface javax.accessibility.AccessibleTextpublic int getCaretPosition()
javax.accessibility.AccessibleTextgetCaretPosition in interface javax.accessibility.AccessibleTextpublic java.lang.String getAtIndex(int part, int index)
javax.accessibility.AccessibleTextgetAtIndex in interface javax.accessibility.AccessibleTextpart - AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCEindex - the 0-based character indexpublic java.lang.String getAfterIndex(int part, int index)
javax.accessibility.AccessibleTextgetAfterIndex in interface javax.accessibility.AccessibleTextpart - AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCEindex - the 0-based character indexpublic java.lang.String getBeforeIndex(int part, int index)
javax.accessibility.AccessibleTextgetBeforeIndex in interface javax.accessibility.AccessibleTextpart - AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCEindex - the 0-based character indexpublic javax.swing.text.AttributeSet getCharacterAttribute(int index)
javax.accessibility.AccessibleTextgetCharacterAttribute in interface javax.accessibility.AccessibleTextindex - the 0-based character indexpublic int getSelectionStart()
javax.accessibility.AccessibleTextgetSelectionStart in interface javax.accessibility.AccessibleTextpublic int getSelectionEnd()
javax.accessibility.AccessibleTextgetSelectionEnd in interface javax.accessibility.AccessibleTextpublic java.lang.String getSelectedText()
javax.accessibility.AccessibleTextgetSelectedText in interface javax.accessibility.AccessibleTextpublic void textValueChanged(java.awt.event.TextEvent event)
java.awt.event.TextListenertextValueChanged in interface java.awt.event.TextListenerevent - the TextEvent indicating the change