public boolean add (AccessibleState state)

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