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.
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.
(->accessible-relation-set)
(->accessible-relation-set relations)
Constructor.
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. - javax.accessibility.AccessibleRelation[]
Constructor. 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. - `javax.accessibility.AccessibleRelation[]`
(add this relation)
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 - javax.accessibility.AccessibleRelation
returns: true if relation is added to the relation set; false if the
relation set is unchanged - boolean
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 - `javax.accessibility.AccessibleRelation` returns: true if relation is added to the relation set; false if the relation set is unchanged - `boolean`
(add-all this relations)
Adds all of the relations to the existing relation set. Duplicate entries are ignored.
relations - AccessibleRelation array describing the relation set. - javax.accessibility.AccessibleRelation[]
Adds all of the relations to the existing relation set. Duplicate entries are ignored. relations - AccessibleRelation array describing the relation set. - `javax.accessibility.AccessibleRelation[]`
(clear this)
Removes all the relations from the current relation set.
Removes all the relations from the current relation set.
(contains this key)
Returns whether the relation set contains a relation that matches the specified key.
key - the AccessibleRelation key - java.lang.String
returns: true if the relation is in the relation set; otherwise false - boolean
Returns whether the relation set contains a relation that matches the specified key. key - the AccessibleRelation key - `java.lang.String` returns: true if the relation is in the relation set; otherwise false - `boolean`
(get this key)
Returns the relation that matches the specified key.
key - the AccessibleRelation key - java.lang.String
returns: the relation, if one exists, that matches the specified key.
Otherwise, null is returned. - javax.accessibility.AccessibleRelation
Returns the relation that matches the specified key. key - the AccessibleRelation key - `java.lang.String` returns: the relation, if one exists, that matches the specified key. Otherwise, null is returned. - `javax.accessibility.AccessibleRelation`
(remove this relation)
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 - javax.accessibility.AccessibleRelation
returns: true if the relation is in the relation set; false if the
relation set is unchanged - boolean
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 - `javax.accessibility.AccessibleRelation` returns: true if the relation is in the relation set; false if the relation set is unchanged - `boolean`
(size this)
Returns the number of relations in the relation set.
returns: the number of relations in the relation set - int
Returns the number of relations in the relation set. returns: the number of relations in the relation set - `int`
(to-array this)
Returns the current relation set as an array of AccessibleRelation
returns: AccessibleRelation array contacting the current relation. - javax.accessibility.AccessibleRelation[]
Returns the current relation set as an array of AccessibleRelation returns: AccessibleRelation array contacting the current relation. - `javax.accessibility.AccessibleRelation[]`
(to-string this)
Creates a localized String representing all the relations in the set using the default locale.
returns: comma separated localized String - java.lang.String
Creates a localized String representing all the relations in the set using the default locale. returns: comma separated localized String - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close