javax.accessibility

Class AccessibleTextSequence

public class AccessibleTextSequence extends Object

This is a convenience class that encapsulates a string of text and a range specifying where, within a larger body of text, the string may be found.

Since: 1.5

Field Summary
intendIndex
The ending index.
intstartIndex
The starting index.
Stringtext
The text of the sequence.
Constructor Summary
AccessibleTextSequence(int start, int end, String txt)
Create a new instance.

Field Detail

endIndex

public int endIndex
The ending index.

startIndex

public int startIndex
The starting index.

text

public String text
The text of the sequence.

Constructor Detail

AccessibleTextSequence

public AccessibleTextSequence(int start, int end, String txt)
Create a new instance.

Parameters: start the initial index of the text within a larger body of text. end the final index of the text within a larger body of text. txt the text itself.

Since: 1.6