|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleRelationSet
public class AccessibleRelationSet
Describes all relations of an accessible object. For example, an object by labeled by one object and control another.
AccessibleRelation| Field Summary | |
|---|---|
protected Vector<AccessibleRelation> |
relations
The list of relations, should be instances of AccessibleRelation. |
| Constructor Summary | |
|---|---|
AccessibleRelationSet()
Create an empty relation set. |
|
AccessibleRelationSet(AccessibleRelation[] relations)
Create a relation set initialized with the given relations, duplicates are ignored. |
|
| Method Summary | |
|---|---|
boolean |
add(AccessibleRelation relation)
Add a new relation to the current set. |
void |
addAll(AccessibleRelation[] array)
Add all of the relations to the current set. |
void |
clear()
Clear all relations in the set. |
boolean |
contains(String key)
Check if the relation key is in the set. |
AccessibleRelation |
get(String key)
Get the relation that matches the key. |
boolean |
remove(AccessibleRelation relation)
Remove a relation from the set. |
int |
size()
Return the number of relations in the set. |
AccessibleRelation[] |
toArray()
Return the relation set as an array. |
String |
toString()
Return a localized, comma-separated string representing all relations in the set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Vector<AccessibleRelation> relations
add(AccessibleRelation),
addAll(AccessibleRelation[]),
remove(AccessibleRelation),
contains(String),
get(String),
size(),
toArray(),
clear()| Constructor Detail |
|---|
public AccessibleRelationSet()
public AccessibleRelationSet(AccessibleRelation[] relations)
relations - the relations to insert
NullPointerException - if relations is null| Method Detail |
|---|
public boolean add(AccessibleRelation relation)
relation - the relation to add
NullPointerException - if relation is nullpublic void addAll(AccessibleRelation[] array)
array - the array of relations to add
NullPointerException - if array is null or has null entriespublic boolean remove(AccessibleRelation relation)
relation - the state to remove
public void clear()
public int size()
public boolean contains(String key)
key - the relation to locate
public AccessibleRelation get(String key)
key - the relation to locate
public AccessibleRelation[] 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 | ||||||||