|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.TextComponent.AccessibleAWTTextComponent
protected class TextComponent.AccessibleAWTTextComponent
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
---|
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Fields inherited from interface javax.accessibility.AccessibleText |
---|
CHARACTER, SENTENCE, WORD |
Constructor Summary | |
---|---|
TextComponent.AccessibleAWTTextComponent()
|
Method Summary | |
---|---|
AccessibleRole |
getAccessibleRole()
Returns the role of this component. |
AccessibleStateSet |
getAccessibleStateSet()
Returns a state set describing this component's state. |
AccessibleText |
getAccessibleText()
Get any supported accessible text. |
String |
getAfterIndex(int part,
int index)
Returns the section of text after the index, or null if the index or part is invalid. |
String |
getAtIndex(int part,
int index)
Returns the section of text at the index, or null if the index or part is invalid. |
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. |
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. |
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(TextEvent event)
This method is called when the text being monitored changes. |
Methods inherited from class javax.accessibility.AccessibleContext |
---|
firePropertyChange, getAccessibleAction, getAccessibleEditableText, 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 |
Constructor Detail |
---|
public TextComponent.AccessibleAWTTextComponent()
Method Detail |
---|
public AccessibleRole getAccessibleRole()
Component.AccessibleAWTComponent
getAccessibleRole
in class Component.AccessibleAWTComponent
AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
Component.AccessibleAWTComponent
getAccessibleStateSet
in class Component.AccessibleAWTComponent
AccessibleState
public AccessibleText getAccessibleText()
AccessibleContext
getAccessibleText
in class AccessibleContext
AccessibleText
public int getIndexAtPoint(Point point)
AccessibleText
getIndexAtPoint
in interface AccessibleText
point
- the point to look at
public Rectangle getCharacterBounds(int index)
AccessibleText
getCharacterBounds
in interface AccessibleText
index
- the 0-based character index
public int getCharCount()
AccessibleText
getCharCount
in interface AccessibleText
public int getCaretPosition()
AccessibleText
getCaretPosition
in interface AccessibleText
public String getAtIndex(int part, int index)
AccessibleText
getAtIndex
in interface AccessibleText
part
- AccessibleText.CHARACTER
, AccessibleText.WORD
, or AccessibleText.SENTENCE
index
- the 0-based character index
public String getAfterIndex(int part, int index)
AccessibleText
getAfterIndex
in interface AccessibleText
part
- AccessibleText.CHARACTER
, AccessibleText.WORD
, or AccessibleText.SENTENCE
index
- the 0-based character index
public String getBeforeIndex(int part, int index)
AccessibleText
getBeforeIndex
in interface AccessibleText
part
- AccessibleText.CHARACTER
, AccessibleText.WORD
, or AccessibleText.SENTENCE
index
- the 0-based character index
public AttributeSet getCharacterAttribute(int index)
AccessibleText
getCharacterAttribute
in interface AccessibleText
index
- the 0-based character index
public int getSelectionStart()
AccessibleText
getSelectionStart
in interface AccessibleText
public int getSelectionEnd()
AccessibleText
getSelectionEnd
in interface AccessibleText
public String getSelectedText()
AccessibleText
getSelectedText
in interface AccessibleText
public void textValueChanged(TextEvent event)
TextListener
textValueChanged
in interface TextListener
event
- the TextEvent
indicating the change
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |