javax.swing
protected class JMenuBar.AccessibleJMenuBar extends AccessibleJComponent implements AccessibleSelection
JMenuBar
.
Method Summary | |
---|---|
void | addAccessibleSelection(int i)
Selects the menu with index i . |
void | clearAccessibleSelection()
Deselects all possibly selected menus. |
AccessibleRole | getAccessibleRole()
Returns the accessible role of JMenuBar , which is
{@link AccessibleRole#MENU_BAR}.
|
Accessible | getAccessibleSelection(int i)
Returns the selected with index i menu, or
null if the specified menu is not selected.
|
AccessibleSelection | getAccessibleSelection()
Returns the AccessibleSelection for this object. |
int | getAccessibleSelectionCount()
Returns the number of selected items in the menu bar. |
AccessibleStateSet | getAccessibleStateSet()
Returns the state of this AccessibleJMenuBar .
|
boolean | isAccessibleChildSelected(int i)
Returns true if the specified menu is selected,
false otherwise.
|
void | removeAccessibleSelection(int i)
Deselects the menu with index i .
|
void | selectAllAccessibleSelection()
In menu bars it is not possible to select all items, so this method
does nothing. |
i
. If another menu is already
selected, this will be deselected.
Parameters: i the menu to be selected
JMenuBar
, which is
{@link AccessibleRole#MENU_BAR}.
Returns: the accessible role of JMenuBar
, which is
{@link AccessibleRole#MENU_BAR}
i
menu, or
null
if the specified menu is not selected.
Parameters: i the index of the menu to return
Returns: the selected with index i
menu, or
null
if the specified menu is not selected
AccessibleSelection
for this object. This
method returns this
, since the
AccessibleJMenuBar
manages its selection itself.
Returns: the AccessibleSelection
for this object
0
if nothing is selected, or 1
if one
item is selected.
Returns: the number of selected items in the menu bar
AccessibleJMenuBar
.
Returns: the state of this AccessibleJMenuBar
.
true
if the specified menu is selected,
false
otherwise.
Parameters: i the index of the menu to check
Returns: true
if the specified menu is selected,
false
otherwise
i
.
Parameters: i the menu index to be deselected