Any component that can be placed into a menu should implement this interface. This interface is used by
MenuSelectionManager
MenuSelection
to handle selection and navigation in menu hierarchies.
Method Summary | |
---|---|
Component |
getComponent
() This method should return the java.awt.Component used to paint the receiving element. |
MenuElement [] |
getSubElements
() This method should return an array containing the sub-elements for the receiving menu element |
void |
menuSelectionChanged
(boolean isIncluded) Call by the MenuSelectionManager |
void |
processKeyEvent
(
KeyEvent
event,
MenuElement
[] path,
MenuSelectionManager
manager) Process a key event. |
void |
processMouseEvent
(
MouseEvent
event,
MenuElement
[] path,
MenuSelectionManager
Processes |
Method Detail |
---|
void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
void menuSelectionChanged(boolean isIncluded)
MenuElement[] getSubElements()
Component getComponent()