public class MenuHandler extends Object implements ActionListener, MenuActionProvider
| Constructor and Description |
|---|
MenuHandler(JFrame parentFrame,
MenuDelegateFactory menuDelegateFactory,
InputSource configSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent actionEvent) |
Action |
getAction(String className) |
ActionListener |
getDefaultActionListener() |
MenuDelegate |
getDelegate(String menuPath) |
JFrame |
getParentFrame() |
void |
setEnabled(String menuPath,
boolean enabled) |
public MenuHandler(JFrame parentFrame, MenuDelegateFactory menuDelegateFactory, InputSource configSource) throws IOException, SAXException, ParserConfigurationException
public JFrame getParentFrame()
public MenuDelegate getDelegate(String menuPath)
public void setEnabled(String menuPath, boolean enabled)
public void actionPerformed(ActionEvent actionEvent)
actionPerformed in interface ActionListenerpublic ActionListener getDefaultActionListener()
getDefaultActionListener in interface MenuActionProviderpublic Action getAction(String className)
getAction in interface MenuActionProviderCopyright © 2017. All rights reserved.