info.magnolia.ui.dialog
Class BaseDialogPresenter
java.lang.Object
info.magnolia.ui.dialog.BaseDialogPresenter
- All Implemented Interfaces:
- ActionListener, DialogPresenter
- Direct Known Subclasses:
- ChooseDialogPresenterImpl, FormDialogPresenterImpl, MoveDialogPresenterImpl
public class BaseDialogPresenter
- extends Object
- implements DialogPresenter, ActionListener
Base implementation of DialogPresenter
.
Field Summary |
protected info.magnolia.objectfactory.ComponentProvider |
componentProvider
|
Constructor Summary |
BaseDialogPresenter(info.magnolia.objectfactory.ComponentProvider componentProvider,
ActionExecutor executor,
DialogView view,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.i18nsystem.SimpleTranslator i18n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentProvider
protected info.magnolia.objectfactory.ComponentProvider componentProvider
BaseDialogPresenter
@Inject
public BaseDialogPresenter(info.magnolia.objectfactory.ComponentProvider componentProvider,
ActionExecutor executor,
DialogView view,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.i18nsystem.SimpleTranslator i18n)
getView
public DialogView getView()
- Specified by:
getView
in interface DialogPresenter
getActionArea
public ActionAreaPresenter getActionArea()
- Specified by:
getActionArea
in interface DialogPresenter
closeDialog
public void closeDialog()
- Specified by:
closeDialog
in interface DialogPresenter
addShortcut
public void addShortcut(String actionName,
int keyCode,
int... modifiers)
- Specified by:
addShortcut
in interface DialogPresenter
start
public DialogView start(DialogDefinition definition,
UiContext uiContext)
- Specified by:
start
in interface DialogPresenter
filterActions
protected Iterable<ActionDefinition> filterActions()
getActionParameters
protected Object[] getActionParameters(String actionName)
onActionFired
public void onActionFired(String actionName,
Object... actionContextParams)
- Specified by:
onActionFired
in interface ActionListener
executeAction
protected void executeAction(String actionName,
Object[] actionContextParams)
getDefinition
protected DialogDefinition getDefinition()
getExecutor
protected ActionExecutor getExecutor()
getI18nizer
protected info.magnolia.i18nsystem.I18nizer getI18nizer()
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.