javax.accessibility
Class AccessibleStateSet
java.lang.Object
|
+--javax.accessibility.AccessibleStateSet
public class
AccessibleStateSetextends
Object Describes all elements of an accessible object's state. For example, an
object may be enabled and have focus.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
states
protected Vector states
The list of states, should be instances of AccessibleState. Don't set
this to null.
See Also:
AccessibleStateSet
public AccessibleStateSet()
Create an empty state set.
AccessibleStateSet
public AccessibleStateSet(javax.accessibility.AccessibleState[] states)
Create a state set initialized with the given states, duplicates are
ignored.
Parameters:
Throws:
add
public boolean add(javax.accessibility.AccessibleState state)
Add a new state to the current set. Return true if the state was added,
as duplicates are ignored. Entering a null state will cause problems
later, so don't do it.
Parameters:
Returns:
- true if the state was added
addAll
public void addAll(javax.accessibility.AccessibleState[] array)
Add all of the states to the current set. Duplicates are ignored.
Entering a null state will cause problems later, so don't do it.
Parameters:
Throws:
clear
public void clear()
Clear all states in the set.
contains
public boolean contains(javax.accessibility.AccessibleState state)
Check if the current state is in the set.
Parameters:
Returns:
remove
public boolean remove(javax.accessibility.AccessibleState state)
Remove a state from the set. If a state was removed, return true.
Parameters:
Returns:
toArray
public AccessibleState[] toArray()
Return the state set as an array.
Returns:
- an array of the current states
toString
public String toString()
Return a localized, comma-separated string representing all states
in the set. This is in arbitrary order.
Returns:
- the string representation
See Also: