Uses of Class javax.accessibility.AccessibleRelation (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
javax.accessibility.AccessibleRelation

- Packages that use AccessibleRelation
  Package | Description
  --- | ---
  javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components.

- - ### Uses of AccessibleRelation in javax.accessibility

    Fields in javax.accessibility with type parameters of type AccessibleRelation
    Modifier and Type | Field and Description
    --- | ---
    `protected Vector<AccessibleRelation>` | AccessibleRelationSet.`relations` Each entry in the Vector represents an AccessibleRelation.

    Methods in javax.accessibility that return AccessibleRelation
    Modifier and Type | Method and Description
    --- | ---
    `AccessibleRelation` | AccessibleRelationSet.`get(String key)` Returns the relation that matches the specified key.
    `AccessibleRelation[]` | AccessibleRelationSet.`toArray()` Returns the current relation set as an array of AccessibleRelation

    Methods in javax.accessibility with parameters of type AccessibleRelation
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | AccessibleRelationSet.`add(AccessibleRelation relation)` Adds a new relation to the current relation set.
    `void` | AccessibleRelationSet.`addAll(AccessibleRelation[] relations)` Adds all of the relations to the existing relation set.
    `boolean` | AccessibleRelationSet.`remove(AccessibleRelation relation)` Removes a relation from the current relation set.

    Constructors in javax.accessibility with parameters of type AccessibleRelation
    Constructor and Description
    `AccessibleRelationSet(AccessibleRelation[] relations)` Creates a new relation with the initial set of relations contained in the array of relations passed in.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.