java.lang.Object | |
↳ | javax.accessibility.AccessibleRelationSet |
Class AccessibleRelationSet determines a component's relation set. The relation set of a component is a set of AccessibleRelation objects that describe the component's relationships with other components.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
relations | Each entry in the Vector represents an AccessibleRelation. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new empty relation set.
| |||||||||||
Creates a new relation with the initial set of relations contained in
the array of relations passed in.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new relation to the current relation set.
| |||||||||||
Adds all of the relations to the existing relation set.
| |||||||||||
Removes all the relations from the current relation set.
| |||||||||||
Returns whether the relation set contains a relation
that matches the specified key.
| |||||||||||
Returns the relation that matches the specified key.
| |||||||||||
Removes a relation from the current relation set.
| |||||||||||
Returns the number of relations in the relation set.
| |||||||||||
Returns the current relation set as an array of AccessibleRelation
| |||||||||||
Creates a localized String representing all the relations in the set
using the default locale.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Each entry in the Vector represents an AccessibleRelation.
Creates a new empty relation set.
Creates a new relation with the initial set of relations contained in the array of relations passed in. Duplicate entries are ignored.
relations | an array of AccessibleRelation describing the relation set. |
---|
Adds a new relation to the current relation set. If the relation is already in the relation set, the target(s) of the specified relation is merged with the target(s) of the existing relation. Otherwise, the new relation is added to the relation set.
relation | the relation to add to the relation set |
---|
Adds all of the relations to the existing relation set. Duplicate entries are ignored.
relations | AccessibleRelation array describing the relation set. |
---|
Removes all the relations from the current relation set.
Returns whether the relation set contains a relation that matches the specified key.
key | the AccessibleRelation key |
---|
Returns the relation that matches the specified key.
key | the AccessibleRelation key |
---|
Removes a relation from the current relation set. If the relation is not in the set, the relation set will be unchanged and the return value will be false. If the relation is in the relation set, it will be removed from the set and the return value will be true.
relation | the relation to remove from the relation set |
---|
Returns the number of relations in the relation set.
Returns the current relation set as an array of AccessibleRelation
Creates a localized String representing all the relations in the set using the default locale.