Public Member Functions | |
abstract JMenuItem[] | getItems () |
Should be implemented by instances to return the menu items that will be prepended to the menu when it is displayed. | |
TrainingMenu | getMenu () |
Returns the menu that will be shown on right-click, creating it if necessary. | |
void | mouseClicked (MouseEvent e) |
Invoked when the mouse is clicked in the attached control. | |
Private Attributes | |
TrainingMenu | menu = null |
The menu itself. |
abstract JMenuItem [] edu.cmu.hcii.calo.view.training.TrainingMenuListener.getItems | ( | ) | [pure virtual] |
Should be implemented by instances to return the menu items that will be prepended to the menu when it is displayed.
TrainingMenu edu.cmu.hcii.calo.view.training.TrainingMenuListener.getMenu | ( | ) |
Returns the menu that will be shown on right-click, creating it if necessary.
getItems() will be called to populate the menu the first time this method is called.
void edu.cmu.hcii.calo.view.training.TrainingMenuListener.mouseClicked | ( | MouseEvent | e | ) |
Invoked when the mouse is clicked in the attached control.
Shows the menu if the event was fired as the result of a right-click.
e | the mouse event |
TrainingMenu edu.cmu.hcii.calo.view.training.TrainingMenuListener.menu = null [private] |
The menu itself.
Lazily constructed.