public class ActionServiceImp extends Object implements ActionServices
Modifier and Type | Class and Description |
---|---|
private class |
ActionServiceImp.ActionRes |
private class |
ActionServiceImp.KeyToRcaDispatcher |
Modifier and Type | Field and Description |
---|---|
private HashMap<String,ActionServiceImp.ActionRes> |
actionRepository |
private WindowCtrl |
guiController |
private ActionServiceImp.KeyToRcaDispatcher |
keyDispatcher |
private JMenuBar |
menuBar |
private HashMap<String,JMenu> |
menuRepository |
private JToolBar |
toolBar |
EDIT_GROUP, FILE_GROUP, HELP_GROUP, WINDOW_GROUP
Constructor and Description |
---|
ActionServiceImp() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(AbstractAction action)
Adds the.
|
private JButton |
addButtonOnToolBar(AbstractAction action) |
private JMenuItem |
addMenuItem(AbstractAction action) |
AbstractAction |
getAction(String id) |
private JMenu |
getMenu(String menuGroup) |
JMenuBar |
getMenuBar() |
JToolBar |
getToolBar() |
private void |
initMenuBar() |
private void |
initToolBar() |
boolean |
remove(AbstractAction action)
Removes the.
|
private void |
removeButtonOnToolBar(ActionServiceImp.ActionRes res) |
private void |
removeMenuItem(ActionServiceImp.ActionRes res) |
void |
setRcaSwing(WindowCtrl guiController) |
private HashMap<String,ActionServiceImp.ActionRes> actionRepository
private final ActionServiceImp.KeyToRcaDispatcher keyDispatcher
private JMenuBar menuBar
private JToolBar toolBar
private WindowCtrl guiController
public AbstractAction getAction(String id) throws NoSuchElementException
NoSuchElementException
public boolean add(AbstractAction action)
ActionServices
add
in interface ActionServices
action
- the actionpublic boolean remove(AbstractAction action)
ActionServices
remove
in interface ActionServices
action
- the actionpublic JMenuBar getMenuBar()
public JToolBar getToolBar()
private void initMenuBar()
private void initToolBar()
private JButton addButtonOnToolBar(AbstractAction action)
private void removeButtonOnToolBar(ActionServiceImp.ActionRes res)
private JMenuItem addMenuItem(AbstractAction action)
private void removeMenuItem(ActionServiceImp.ActionRes res)
public void setRcaSwing(WindowCtrl guiController)
Copyright © 2014 www.staniscia.net. All Rights Reserved.