javax.accessibility
Class AccessibleTextSequence

java.lang.Object
  extended by javax.accessibility.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
 int endIndex
          The ending index.
 int startIndex
          The starting index.
 String text
          The text of the sequence.
 
Constructor Summary
AccessibleTextSequence(int start, int end, String txt)
          Create a new instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public String text
The text of the sequence.


startIndex

public int startIndex
The starting index.


endIndex

public int endIndex
The ending index.

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