Class AccessibleStateSet determines a component's state set. The
state set of a component is a set of AccessibleState objects and
descriptions. E.G., The current overall state of the object, such as whether
it is enabled, has focus, etc.
Adds a new state to the current state set if it is not already present.
If the state is already in the state set, the state set is unchanged and
the return value is false. Otherwise, the state is added to the
state set and the return value is true.
Parameters:
state - the state to add to the state set
Returns:
true if state is added to the state set; false if
the state set is unchanged
Removes a state from the current state set. If the state is not in the
set, the state set will be unchanged and the return value will be
false. If the state is in the state set, it will be removed from
the set and the return value will be true.
Parameters:
state - the state to remove from the state set
Returns:
true if the state is in the state set; false if
the state set will be unchanged
clear
public void clear()
Removes all the states from the current state set.