Class JMenu.AccessibleJMenu

    • Constructor Detail

      • AccessibleJMenu

        protected AccessibleJMenu()
    • Method Detail

      • getAccessibleChildrenCount

        public int getAccessibleChildrenCount()
        Returns the number of accessible children in the object. If all of the children of this object implement Accessible, than this method should return the number of children of this object.
        Overrides:
        getAccessibleChildrenCount in class  JComponent.AccessibleJComponent
        Returns:
        the number of accessible children in the object.
      • getAccessibleSelection

        public AccessibleSelection getAccessibleSelection()
        Get the AccessibleSelection associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleSelection interface on behalf of itself.
        Overrides:
        getAccessibleSelection in class  AccessibleContext
        Returns:
        this object
        See Also:
        AccessibleSelection
      • getAccessibleSelectionCount

        public int getAccessibleSelectionCount()
        Returns 1 if a sub-menu is currently selected in this menu.
        Specified by:
        getAccessibleSelectionCount in interface  AccessibleSelection
        Returns:
        1 if a menu is currently selected, else 0
      • isAccessibleChildSelected

        public boolean isAccessibleChildSelected(int i)
        Returns true if the current child of this object is selected (that is, if this child is a popped-up submenu).
        Specified by:
        isAccessibleChildSelected in interface  AccessibleSelection
        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)
      • clearAccessibleSelection

        public void clearAccessibleSelection()
        Clears the selection in the object, so that nothing in the object is selected. This will close any open sub-menu.
      • selectAllAccessibleSelection

        public void selectAllAccessibleSelection()
        Normally causes every selected item in the object to be selected if the object supports multiple selections. This method makes no sense in a menu bar, and so does nothing.