javax.accessibility

Class AccessibleAttributeSequence

public class AccessibleAttributeSequence extends Object

This is a convenience class that wraps together a sequence of text with the attributes applied to it. This allows a single object to be used when ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED events are fired.

Since: 1.5

Field Summary
AttributeSetattributes
The attributes of the text.
intendIndex
The ending index.
intstartIndex
The starting index.
Constructor Summary
AccessibleAttributeSequence(int start, int end, AttributeSet attr)
Creates a new instance using the specified attributes and the supplied start and end indicies.

Field Detail

attributes

public AttributeSet attributes
The attributes of the text.

endIndex

public int endIndex
The ending index.

startIndex

public int startIndex
The starting index.

Constructor Detail

AccessibleAttributeSequence

public AccessibleAttributeSequence(int start, int end, AttributeSet attr)
Creates a new instance using the specified attributes and the supplied start and end indicies.

Parameters: start the index of the start of the text. end the index of the end of the text. attr the attributes applied to the text sequence.

Since: 1.6