public class AccessibleStateSet extends Object
AccessibleState
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
states
Each entry in the Vector represents an AccessibleState.
|
| Constructor and Description |
|---|
AccessibleStateSet()
Creates a new empty state set.
|
AccessibleStateSet(AccessibleState
Creates a new state with the initial set of states contained in the array of states passed in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(AccessibleState
Adds a new state to the current state set if it is not already present.
|
void |
addAll(AccessibleState
Adds all of the states to the existing state set.
|
void |
clear()
Removes all the states from the current state set.
|
boolean |
contains(AccessibleState
Checks if the current state is in the state set.
|
boolean |
remove(AccessibleState
Removes a state from the current state set.
|
AccessibleState |
toArray()
Returns the current state set as an array of AccessibleState
|
String |
toString()
Creates a localized String representing all the states in the set using the default locale.
|
protected Vector<AccessibleState > states
public AccessibleStateSet()
public AccessibleStateSet(AccessibleState[] states)
states - an array of AccessibleState describing the state set.
public boolean add(AccessibleStatestate)
state - the state to add to the state set
public void addAll(AccessibleState[] states)
states - AccessibleState array describing the state set.
public boolean remove(AccessibleStatestate)
state - the state to remove from the state set
public void clear()
public boolean contains(AccessibleStatestate)
state - the state
public AccessibleState[] toArray()
public StringtoString()
toString in class
Object
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)