Instance Method

getSelectedItem

Retrieves the menu item in the menu bar that is currently in focus.

Declaration

Element getSelectedItem();

Return Value

The currently selected element.

See Also

Setting and Retrieving Menu Item Documents

getDocument

Retrieves the document associated with the specified menu item.

setDocument

Associates a document with a menu item.

setSelectedItem

Sets the focus in a menu bar to the specified menu item.