MenuSelectionManager
to handle selection and navigation in menu hierarchies.
| Modifier and Type | Method and Description |
|---|---|
| public Component | Returns: theComponent valueThis method should return the |
| public MenuElement[] | Returns: an array ofMenuElementsThis method should return an array containing the sub-elements for the receiving menu element. |
| public void | menuSelectionChanged(boolean
can be used to indicate if this isIncluded)MenuElement is
active (if it is a menu) or is on the part of the menu path that
changed (if it is a menu item).Call by the |
| public void | processKeyEvent(KeyEvent
a event, MenuElement[] KeyEvent to be processedthe path of the receiving element in the menu hierarchy path, MenuSelectionManager the manager)MenuSelectionManager for the menu hierarchyProcess a key event. |
| public void | processMouseEvent(MouseEvent
a event, MenuElement[] MouseEvent to be processedthe path of the receiving element in the menu hierarchy path, MenuSelectionManager the manager)MenuSelectionManager for the menu hierarchyProcesses a mouse event. |
| getComponent | back to summary |
|---|---|
| public Component getComponent() This method should return the
| |
| getSubElements | back to summary |
|---|---|
| public MenuElement[] getSubElements() This method should return an array containing the sub-elements for the receiving menu element.
| |
| menuSelectionChanged | back to summary |
|---|---|
| public void menuSelectionChanged(boolean isIncluded) Call by the
| |
| processKeyEvent | back to summary |
|---|---|
| public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) Process a key event.
| |
| processMouseEvent | back to summary |
|---|---|
| public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) Processes a mouse event.
| |