javax.swing
protected class JMenu.AccessibleJMenu extends AccessibleJMenuItem implements AccessibleSelection
JMenu
.
Constructor Summary | |
---|---|
protected | AccessibleJMenu() |
Method Summary | |
---|---|
void | addAccessibleSelection(int index)
Selects the accessible child with the specified index.
|
void | clearAccessibleSelection()
Removes all possibly selected accessible children of this object from
the selection. |
Accessible | getAccessibleChild(int index)
Returns the accessible child with the specified index .
|
int | getAccessibleChildrenCount()
Returns the number of accessible children of this object.
|
AccessibleRole | getAccessibleRole()
Returns the accessible role of this object, which is
{@link AccessibleRole#MENU} for the AccessibleJMenu.
|
AccessibleSelection | getAccessibleSelection()
Returns the accessible selection of this object. |
Accessible | getAccessibleSelection(int index)
Returns the selected accessible child with the specified
index .
|
int | getAccessibleSelectionCount()
Returns the number of selected accessible children. |
boolean | isAccessibleChildSelected(int index)
Returns true if the accessible child with the specified
index is selected, false otherwise.
|
void | removeAccessibleSelection(int index)
Removes the item with the specified index from the selection.
|
void | selectAllAccessibleSelection()
AccessibleJMenu don't support multiple selection, so this method
does nothing. |
Parameters: index the index of the accessible child to select
index
.
Parameters: index the index of the child to fetch
Returns: the accessible child with the specified index
Returns: the number of accessible children of this object
Returns: the accessible role of this object
this
here.
Returns: the accessible selection of this object
index
.
Parameters: index the index of the accessible selected child to return
Returns: the selected accessible child with the specified
index
0
if no item is selected, or 1
if an item
is selected. AccessibleJMenu can have maximum 1 selected item.
Returns: the number of selected accessible children
true
if the accessible child with the specified
index is selected, false
otherwise.
Parameters: index the index of the accessible child to check
Returns: true
if the accessible child with the specified
index is selected, false
otherwise
Parameters: index the index of the selected item to remove from the selection