javax.accessibility

Class AccessibleStateSet


  • public class AccessibleStateSet
    extends Object
    Class AccessibleStateSet determines a component's state set. The state set of a component is a set of AccessibleState objects and descriptions. E.G., The current overall state of the object, such as whether it is enabled, has focus, etc.
    See Also:
    AccessibleState
    • Constructor Detail
      • AccessibleStateSet
        public AccessibleStateSet()
        Creates a new empty state set.
      • AccessibleStateSet
        public AccessibleStateSet(AccessibleState[] states)
        Creates a new state with the initial set of states contained in the array of states passed in. Duplicate entries are ignored.
        Parameters:
        states - an array of AccessibleState describing the state set.
    • Method Detail
      • add
        public boolean add(AccessibleState state)
        Adds a new state to the current state set if it is not already present. If the state is already in the state set, the state set is unchanged and the return value is false. Otherwise, the state is added to the state set and the return value is true.
        Parameters:
        state - the state to add to the state set
        Returns:
        true if state is added to the state set; false if the state set is unchanged
      • addAll
        public void addAll(AccessibleState[] states)
        Adds all of the states to the existing state set. Duplicate entries are ignored.
        Parameters:
        states - AccessibleState array describing the state set.
      • remove
        public boolean remove(AccessibleState state)
        Removes a state from the current state set. If the state is not in the set, the state set will be unchanged and the return value will be false. If the state is in the state set, it will be removed from the set and the return value will be true.
        Parameters:
        state - the state to remove from the state set
        Returns:
        true if the state is in the state set; false if the state set will be unchanged
      • clear
        public void clear()
        Removes all the states from the current state set.
      • contains
        public boolean contains(AccessibleState state)
        Checks if the current state is in the state set.
        Parameters:
        state - the state
        Returns:
        true if the state is in the state set; otherwise false
      • toArray
        public AccessibleState[] toArray()
        Returns the current state set as an array of AccessibleState
        Returns:
        AccessibleState array containing the current state.

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/accessibility/accessiblestateset.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut