JTextComponent.AccessibleJTextComponent (Java Platform SE 8 ) (original) (raw)

Modifier and Type

Method

Description

void

[caretUpdate](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#caretUpdate-javax.swing.event.CaretEvent-)([CaretEvent](../../../javax/swing/event/CaretEvent.html "class in javax.swing.event") e)

Handles caret updates (fire appropriate property change event, which are AccessibleContext.ACCESSIBLE_CARET_PROPERTY and AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY).

void

[changedUpdate](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#changedUpdate-javax.swing.event.DocumentEvent-)([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e)

Handles document remove (fire appropriate property change event, which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY).

void

[cut](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#cut-int-int-)(int startIndex, int endIndex)

Cuts the text between two indices into the system clipboard.

void

[delete](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#delete-int-int-)(int startIndex, int endIndex)

Deletes the text between two indices

boolean

[doAccessibleAction](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#doAccessibleAction-int-)(int i)

Performs the specified Action on the object

[AccessibleAction](../../../javax/accessibility/AccessibleAction.html "interface in javax.accessibility")

[getAccessibleAction](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleAction--)()

Gets the AccessibleAction associated with this object that supports one or more actions.

int

[getAccessibleActionCount](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleActionCount--)()

Returns the number of accessible actions available in this object If there are more than one, the first one is considered the "default" action of the object.

[String](../../../java/lang/String.html "class in java.lang")

[getAccessibleActionDescription](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleActionDescription-int-)(int i)

Returns a description of the specified action of the object.

[AccessibleEditableText](../../../javax/accessibility/AccessibleEditableText.html "interface in javax.accessibility")

[getAccessibleEditableText](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleEditableText--)()

Returns the AccessibleEditableText interface for this text component.

[AccessibleRole](../../../javax/accessibility/AccessibleRole.html "class in javax.accessibility")

[getAccessibleRole](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleRole--)()

Gets the role of this object.

[AccessibleStateSet](../../../javax/accessibility/AccessibleStateSet.html "class in javax.accessibility")

[getAccessibleStateSet](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleStateSet--)()

Gets the state set of the JTextComponent.

[AccessibleText](../../../javax/accessibility/AccessibleText.html "interface in javax.accessibility")

[getAccessibleText](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAccessibleText--)()

Get the AccessibleText associated with this object.

[String](../../../java/lang/String.html "class in java.lang")

[getAfterIndex](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAfterIndex-int-int-)(int part, int index)

Returns the String after a given index.

[String](../../../java/lang/String.html "class in java.lang")

[getAtIndex](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getAtIndex-int-int-)(int part, int index)

Returns the String at a given index.

[String](../../../java/lang/String.html "class in java.lang")

[getBeforeIndex](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getBeforeIndex-int-int-)(int part, int index)

Returns the String before a given index.

int

[getCaretPosition](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getCaretPosition--)()

Returns the zero-based offset of the caret.

[AttributeSet](../../../javax/swing/text/AttributeSet.html "interface in javax.swing.text")

[getCharacterAttribute](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getCharacterAttribute-int-)(int i)

Returns the AttributeSet for a given character (at a given index).

[Rectangle](../../../java/awt/Rectangle.html "class in java.awt")

[getCharacterBounds](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getCharacterBounds-int-)(int i)

Determines the bounding box of the character at the given index into the string.

int

[getCharCount](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getCharCount--)()

Returns the number of characters (valid indices)

int

[getIndexAtPoint](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getIndexAtPoint-java.awt.Point-)([Point](../../../java/awt/Point.html "class in java.awt") p)

Given a point in local coordinates, return the zero-based index of the character under that Point.

[String](../../../java/lang/String.html "class in java.lang")

[getSelectedText](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getSelectedText--)()

Returns the portion of the text that is selected.

int

[getSelectionEnd](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getSelectionEnd--)()

Returns the end offset within the selected text.

int

[getSelectionStart](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getSelectionStart--)()

Returns the start offset within the selected text.

[Rectangle](../../../java/awt/Rectangle.html "class in java.awt")

[getTextBounds](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getTextBounds-int-int-)(int startIndex, int endIndex)

Returns the Rectangle enclosing the text between two indicies.

[String](../../../java/lang/String.html "class in java.lang")

[getTextRange](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getTextRange-int-int-)(int startIndex, int endIndex)

Returns the text string between two indices.

[AccessibleTextSequence](../../../javax/accessibility/AccessibleTextSequence.html "class in javax.accessibility")

[getTextSequenceAfter](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getTextSequenceAfter-int-int-)(int part, int index)

Returns the AccessibleTextSequence after a givenindex.

[AccessibleTextSequence](../../../javax/accessibility/AccessibleTextSequence.html "class in javax.accessibility")

[getTextSequenceAt](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getTextSequenceAt-int-int-)(int part, int index)

Returns the AccessibleTextSequence at a givenindex.

[AccessibleTextSequence](../../../javax/accessibility/AccessibleTextSequence.html "class in javax.accessibility")

[getTextSequenceBefore](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#getTextSequenceBefore-int-int-)(int part, int index)

Returns the AccessibleTextSequence before a givenindex.

void

[insertTextAtIndex](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#insertTextAtIndex-int-java.lang.String-)(int index,[String](../../../java/lang/String.html "class in java.lang") s)

Inserts the specified string at the given index

void

[insertUpdate](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#insertUpdate-javax.swing.event.DocumentEvent-)([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e)

Handles document insert (fire appropriate property change event which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY).

void

[paste](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#paste-int-)(int startIndex)

Pastes the text from the system clipboard into the text starting at the specified index.

void

[removeUpdate](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#removeUpdate-javax.swing.event.DocumentEvent-)([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e)

Handles document remove (fire appropriate property change event, which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY).

void

[replaceText](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#replaceText-int-int-java.lang.String-)(int startIndex, int endIndex,[String](../../../java/lang/String.html "class in java.lang") s)

Replaces the text between two indices with the specified string.

void

[selectText](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#selectText-int-int-)(int startIndex, int endIndex)

Selects the text between two indices.

void

[setAttributes](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#setAttributes-int-int-javax.swing.text.AttributeSet-)(int startIndex, int endIndex,[AttributeSet](../../../javax/swing/text/AttributeSet.html "interface in javax.swing.text") as)

Sets attributes for the text between two indices.

void

[setTextContents](../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html#setTextContents-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") s)

Sets the text contents to the specified string.