Package org.omegat.gui.main
Class MainWindowMenu
- java.lang.Object
-
- org.omegat.gui.main.MainWindowMenu
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
,javax.swing.event.MenuListener
,IMainMenu
public class MainWindowMenu extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.MenuListener, IMainMenu
Add newly created MenuItem items to /src/org/omegat/gui/main/MainMenuShortcuts.properties and /src/org/omegat/gui/main/MainMenuShortcuts.mac.properties with the proper shortcuts if set.
-
-
Field Summary
Fields Modifier and Type Field Description javax.swing.JMenuItem
editMultipleAlternate
javax.swing.JMenuItem
editMultipleDefault
javax.swing.JMenuItem
gotoHistoryBackMenuItem
javax.swing.JMenuItem
gotoHistoryForwardMenuItem
-
Constructor Summary
Constructors Constructor Description MainWindowMenu(MainWindow mainWindow, MainWindowMenuHandler mainWindowMenuHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
editMultipleDefault
public javax.swing.JMenuItem editMultipleDefault
-
editMultipleAlternate
public javax.swing.JMenuItem editMultipleAlternate
-
gotoHistoryBackMenuItem
public javax.swing.JMenuItem gotoHistoryBackMenuItem
-
gotoHistoryForwardMenuItem
public javax.swing.JMenuItem gotoHistoryForwardMenuItem
-
-
Constructor Detail
-
MainWindowMenu
public MainWindowMenu(MainWindow mainWindow, MainWindowMenuHandler mainWindowMenuHandler)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
invokeAction
public void invokeAction(java.lang.String action, int modifiers)
Code for dispatching events from components to event handlers.- Specified by:
invokeAction
in interfaceIMainMenu
- Parameters:
action
- ActionCommand of triggering menu itemmodifiers
- Modifier key flags (can be zero)
-
menuSelected
public void menuSelected(javax.swing.event.MenuEvent evt)
Code for dispatching events from components to event handlers.- Specified by:
menuSelected
in interfacejavax.swing.event.MenuListener
- Parameters:
evt
- event info
-
menuCanceled
public void menuCanceled(javax.swing.event.MenuEvent e)
- Specified by:
menuCanceled
in interfacejavax.swing.event.MenuListener
-
menuDeselected
public void menuDeselected(javax.swing.event.MenuEvent e)
- Specified by:
menuDeselected
in interfacejavax.swing.event.MenuListener
-
getMachineTranslationMenu
public javax.swing.JMenu getMachineTranslationMenu()
- Specified by:
getMachineTranslationMenu
in interfaceIMainMenu
-
getOptionsMenu
public javax.swing.JMenu getOptionsMenu()
- Specified by:
getOptionsMenu
in interfaceIMainMenu
-
getToolsMenu
public javax.swing.JMenu getToolsMenu()
- Specified by:
getToolsMenu
in interfaceIMainMenu
-
getGlossaryMenu
public javax.swing.JMenu getGlossaryMenu()
- Specified by:
getGlossaryMenu
in interfaceIMainMenu
-
getProjectMenu
public javax.swing.JMenu getProjectMenu()
- Specified by:
getProjectMenu
in interfaceIMainMenu
-
getAutoCompletionMenu
public javax.swing.JMenu getAutoCompletionMenu()
- Specified by:
getAutoCompletionMenu
in interfaceIMainMenu
-
-