public class ActionManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
ActionManager.ActionEnabler
A workbook listener that sets the enabled state of actoins depending
on whether the current workbook has been modified and/or is stored in
a file.
|
Constructor and Description |
---|
ActionManager(CleanSheets app,
UIController uiController,
FileChooser chooser)
Creates a new action manager.
|
Modifier and Type | Method and Description |
---|---|
BaseAction |
getAction(String identifier)
Returns the action with the given identifier
|
void |
registerAction(String identifier,
BaseAction action)
Registers the given action with the manager
|
public ActionManager(CleanSheets app, UIController uiController, FileChooser chooser)
app
- the CleanSheets applicationuiController
- the user interface controllerchooser
- a file chooserpublic BaseAction getAction(String identifier)
identifier
- the unique identifier of the actionpublic void registerAction(String identifier, BaseAction action)
identifier
- the unique identifier of the actionaction
- the action to register