javax.accessibility
public class AccessibleStateSet extends Object
Since: 1.2
See Also: AccessibleState
UNKNOWN: updated to 1.4
| Field Summary | |
|---|---|
| protected Vector<AccessibleState> | states
The list of states, should be instances of AccessibleState. |
| Constructor Summary | |
|---|---|
| AccessibleStateSet()
Create an empty state set. | |
| AccessibleStateSet(AccessibleState[] states)
Create a state set initialized with the given states, duplicates are
ignored.
| |
| Method Summary | |
|---|---|
| boolean | add(AccessibleState state)
Add a new state to the current set. |
| void | addAll(AccessibleState[] array)
Add all of the states to the current set. |
| void | clear()
Clear all states in the set. |
| boolean | contains(AccessibleState state)
Check if the current state is in the set.
|
| boolean | remove(AccessibleState state)
Remove a state from the set. |
| AccessibleState[] | toArray()
Return the state set as an array.
|
| String | toString()
Return a localized, comma-separated string representing all states
in the set. |
See Also: add (AccessibleState[]) remove contains toArray clear
Parameters: states the states to insert
Throws: NullPointerException if states is null
Parameters: state the state to add
Returns: true if the state was added
Parameters: array the array of states to add
Throws: NullPointerException if array is null
Parameters: state the state to locate
Returns: true if it is in the set
Parameters: state the state to remove
Returns: true if the set changed
Returns: an array of the current states
Returns: the string representation
See Also: AccessibleBundle