public class MainWindowMenu extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.MenuListener, IMainMenu
Modifier and Type | Field and Description |
---|---|
javax.swing.JMenuItem |
editMultipleAlternate |
javax.swing.JMenuItem |
editMultipleDefault |
javax.swing.JMenuItem |
gotoHistoryBackMenuItem |
javax.swing.JMenuItem |
gotoHistoryForwardMenuItem |
protected MainWindow |
mainWindow
MainWindow instance.
|
protected MainWindowMenuHandler |
mainWindowMenuHandler
MainWindow menu handler instance.
|
Constructor and Description |
---|
MainWindowMenu(MainWindow mainWindow,
MainWindowMenuHandler mainWindowMenuHandler) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
javax.swing.JMenu |
getAutoCompletionMenu() |
javax.swing.JMenu |
getGlossaryMenu() |
javax.swing.JMenu |
getMachineTranslationMenu() |
javax.swing.JMenu |
getOptionsMenu() |
javax.swing.JMenu |
getProjectMenu() |
javax.swing.JMenu |
getToolsMenu() |
void |
invokeAction(java.lang.String action,
int modifiers)
Code for dispatching events from components to event handlers.
|
void |
menuCanceled(javax.swing.event.MenuEvent e) |
void |
menuDeselected(javax.swing.event.MenuEvent e) |
void |
menuSelected(javax.swing.event.MenuEvent evt)
Code for dispatching events from components to event handlers.
|
protected void |
setActionCommands()
Set 'actionCommand' for all menu items.
|
protected final MainWindow mainWindow
protected final MainWindowMenuHandler mainWindowMenuHandler
public javax.swing.JMenuItem editMultipleDefault
public javax.swing.JMenuItem editMultipleAlternate
public javax.swing.JMenuItem gotoHistoryBackMenuItem
public javax.swing.JMenuItem gotoHistoryForwardMenuItem
public MainWindowMenu(MainWindow mainWindow, MainWindowMenuHandler mainWindowMenuHandler)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void invokeAction(java.lang.String action, int modifiers)
invokeAction
in interface IMainMenu
action
- ActionCommand of triggering menu itemmodifiers
- Modifier key flags (can be zero)public void menuSelected(javax.swing.event.MenuEvent evt)
menuSelected
in interface javax.swing.event.MenuListener
evt
- event infopublic void menuCanceled(javax.swing.event.MenuEvent e)
menuCanceled
in interface javax.swing.event.MenuListener
public void menuDeselected(javax.swing.event.MenuEvent e)
menuDeselected
in interface javax.swing.event.MenuListener
protected void setActionCommands()
public javax.swing.JMenu getMachineTranslationMenu()
getMachineTranslationMenu
in interface IMainMenu
public javax.swing.JMenu getOptionsMenu()
getOptionsMenu
in interface IMainMenu
public javax.swing.JMenu getToolsMenu()
getToolsMenu
in interface IMainMenu
public javax.swing.JMenu getGlossaryMenu()
getGlossaryMenu
in interface IMainMenu
public javax.swing.JMenu getProjectMenu()
getProjectMenu
in interface IMainMenu
public javax.swing.JMenu getAutoCompletionMenu()
getAutoCompletionMenu
in interface IMainMenu