public class DefaultActionManager extends Object implements ActionManager
| Constructor and Description |
|---|
DefaultActionManager(Application application) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProjectAction(String actionName) |
void |
dataMapSelected() |
void |
dataNodeSelected() |
void |
dbEntitySelected() |
void |
domainSelected()
Updates actions state to reflect DataDomain selection.
|
void |
embeddableSelected() |
<T extends Action> |
getAction(Class<T> actionClass)
Returns an action for key.
|
void |
multipleObjectsSelected(ConfigurationNode[] objects,
Application application)
Invoked when several objects were selected in ProjectTree at time
|
void |
objEntitySelected() |
void |
procedureSelected() |
protected void |
processActionsState(Collection<String> namesOfEnabled)
Sets the state of all controlled actions, flipping it to "enabled" for all actions
in provided collection and to "disabled" for the rest.
|
void |
projectClosed() |
void |
projectOpened()
Updates actions state to reflect an open project.
|
void |
querySelected() |
protected CayenneAction |
registerAction(CayenneAction action) |
void |
removeProjectaction(String actionName) |
void |
setupCutCopyPaste(JComponent comp,
Class<? extends Action> cutActionType,
Class<? extends Action> copyActionType)
Replaces standard Cut, Copy and Paste action maps, so that accelerators like
Ctrl+X, Ctrl+C, Ctrl+V would work.
|
public DefaultActionManager(Application application)
protected CayenneAction registerAction(CayenneAction action)
public void addProjectAction(String actionName)
public void removeProjectaction(String actionName)
public <T extends Action> T getAction(Class<T> actionClass)
ActionManagergetAction in interface ActionManagerpublic void projectOpened()
projectOpened in interface ActionManagerpublic void projectClosed()
projectClosed in interface ActionManagerpublic void domainSelected()
domainSelected in interface ActionManagerpublic void dataNodeSelected()
dataNodeSelected in interface ActionManagerpublic void dataMapSelected()
dataMapSelected in interface ActionManagerpublic void objEntitySelected()
objEntitySelected in interface ActionManagerpublic void dbEntitySelected()
dbEntitySelected in interface ActionManagerpublic void procedureSelected()
procedureSelected in interface ActionManagerpublic void querySelected()
querySelected in interface ActionManagerpublic void embeddableSelected()
embeddableSelected in interface ActionManagerpublic void multipleObjectsSelected(ConfigurationNode[] objects, Application application)
multipleObjectsSelected in interface ActionManagerprotected void processActionsState(Collection<String> namesOfEnabled)
public void setupCutCopyPaste(JComponent comp, Class<? extends Action> cutActionType, Class<? extends Action> copyActionType)
ActionManagersetupCutCopyPaste in interface ActionManagerCopyright © 2001–2015 Apache Cayenne. All rights reserved.