javax.accessibility

Interface AccessibleSelection

    • Method Detail

      • getAccessibleSelectionCount

        int getAccessibleSelectionCount()
        Returns the number of Accessible children currently selected. If no children are selected, the return value will be 0.
        Returns:
        the number of items currently selected.
      • getAccessibleSelection

        Accessible getAccessibleSelection(int i)
        Returns an Accessible representing the specified selected child of the object. If there isn't a selection, or there are fewer children selected than the integer passed in, the return value will be null.

        Note that the index represents the i-th selected child, which is different from the i-th child.

        Parameters:
        i - the zero-based index of selected children
        Returns:
        the i-th selected child
        See Also:
        getAccessibleSelectionCount()
      • isAccessibleChildSelected

        boolean isAccessibleChildSelected(int i)
        Determines if the current child of this object is selected.
        Parameters:
        i - the zero-based index of the child in this Accessible object.
        Returns:
        true if the current child of this object is selected; else false.
        See Also:
        AccessibleContext.getAccessibleChild(int)
      • addAccessibleSelection

        void addAccessibleSelection(int i)
        Adds the specified Accessible child of the object to the object's selection. If the object supports multiple selections, the specified child is added to any existing selection, otherwise it replaces any existing selection in the object. If the specified child is already selected, this method has no effect.
        Parameters:
        i - the zero-based index of the child
        See Also:
        AccessibleContext.getAccessibleChild(int)
      • removeAccessibleSelection

        void removeAccessibleSelection(int i)
        Removes the specified child of the object from the object's selection. If the specified item isn't currently selected, this method has no effect.
        Parameters:
        i - the zero-based index of the child
        See Also:
        AccessibleContext.getAccessibleChild(int)
      • clearAccessibleSelection

        void clearAccessibleSelection()
        Clears the selection in the object, so that no children in the object are selected.
      • selectAllAccessibleSelection

        void selectAllAccessibleSelection()
        Causes every child of the object to be selected if the object supports multiple selections.

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/AccessibleSelection.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