|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleStateSet
public class AccessibleStateSet
Describes all elements of an accessible object's state. For example, an object may be enabled and have focus.
AccessibleState| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Vector<AccessibleState> states
add(AccessibleState),
addAll(AccessibleState[]),
remove(AccessibleState),
contains(AccessibleState),
toArray(),
clear()| Constructor Detail |
|---|
public AccessibleStateSet()
public AccessibleStateSet(AccessibleState[] states)
states - the states to insert
NullPointerException - if states is null| Method Detail |
|---|
public boolean add(AccessibleState state)
state - the state to add
public void addAll(AccessibleState[] array)
array - the array of states to add
NullPointerException - if array is nullpublic boolean remove(AccessibleState state)
state - the state to remove
public void clear()
public boolean contains(AccessibleState state)
state - the state to locate
public AccessibleState[] toArray()
public String toString()
toString in class ObjectAccessibleBundle.toDisplayString(String, Locale)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||