This class implements accessibility support for the
JMenu class. It provides an implementation of the
Java Accessibility API appropriate to menu user-interface elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
getAccessibleSelection(int i)
Returns the currently selected sub-menu if one is selected,
otherwise null (there can only be one selection, and it can
only be a sub-menu, as otherwise menu items don't remain
selected).
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.
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.
Returns the currently selected sub-menu if one is selected,
otherwise null (there can only be one selection, and it can
only be a sub-menu, as otherwise menu items don't remain
selected).
Selects the ith menu in the menu.
If that item is a submenu,
it will pop up in response. If a different item is already
popped up, this will force it to close. If this is a sub-menu
that is already popped up (selected), this method has no
effect.
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.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.