|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.AbstractButton.AccessibleAbstractButton
javax.swing.JMenuItem.AccessibleJMenuItem
javax.swing.JMenu.AccessibleJMenu
protected class JMenu.AccessibleJMenu
Implements support for assisitive technologies for JMenu.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
|---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
| Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
|---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
|---|
accessibleContainerHandler, accessibleFocusHandler |
| Fields inherited from class java.awt.Component.AccessibleAWTComponent |
|---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
| Fields inherited from interface javax.accessibility.AccessibleAction |
|---|
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP |
| Fields inherited from interface javax.accessibility.AccessibleText |
|---|
CHARACTER, SENTENCE, WORD |
| Constructor Summary | |
|---|---|
protected |
JMenu.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 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. |
| Methods inherited from class javax.swing.JMenuItem.AccessibleJMenuItem |
|---|
stateChanged |
| Methods inherited from class javax.swing.JComponent.AccessibleJComponent |
|---|
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener |
| Methods inherited from class java.awt.Container.AccessibleAWTContainer |
|---|
getAccessibleAt |
| Methods inherited from class javax.accessibility.AccessibleContext |
|---|
firePropertyChange, getAccessibleEditableText, getAccessibleTable, setAccessibleDescription, setAccessibleName, setAccessibleParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.accessibility.AccessibleComponent |
|---|
addFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
| Constructor Detail |
|---|
protected JMenu.AccessibleJMenu()
| Method Detail |
|---|
public int getAccessibleChildrenCount()
getAccessibleChildrenCount in class JComponent.AccessibleJComponentAccessibleContext.getAccessibleChild(int)public Accessible getAccessibleChild(int index)
index.
getAccessibleChild in class JComponent.AccessibleJComponentindex - the index of the child to fetch
indexComponent.AccessibleAWTComponent.getAccessibleChildrenCount()public AccessibleSelection getAccessibleSelection()
this here.
getAccessibleSelection in class AccessibleContextAccessibleSelectionpublic Accessible getAccessibleSelection(int index)
index.
getAccessibleSelection in interface AccessibleSelectionindex - the index of the accessible selected child to return
indexAccessibleSelection.getAccessibleSelectionCount()public boolean isAccessibleChildSelected(int index)
true if the accessible child with the specified
index is selected, false otherwise.
isAccessibleChildSelected in interface AccessibleSelectionindex - the index of the accessible child to check
true if the accessible child with the specified
index is selected, false otherwisepublic AccessibleRole getAccessibleRole()
AccessibleRole.MENU for the AccessibleJMenu.
getAccessibleRole in class JMenuItem.AccessibleJMenuItemAccessibleRolepublic int getAccessibleSelectionCount()
0 if no item is selected, or 1 if an item
is selected. AccessibleJMenu can have maximum 1 selected item.
getAccessibleSelectionCount in interface AccessibleSelectionpublic void addAccessibleSelection(int index)
addAccessibleSelection in interface AccessibleSelectionindex - the index of the accessible child to selectpublic void removeAccessibleSelection(int index)
removeAccessibleSelection in interface AccessibleSelectionindex - the index of the selected item to remove from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection in interface AccessibleSelectionpublic void selectAllAccessibleSelection()
selectAllAccessibleSelection in interface AccessibleSelection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||