info.magnolia.ui.dialog
Class BaseDialogPresenter

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addShortcut(String actionName, int keyCode, int... modifiers)
           
 void closeDialog()
           
protected  void executeAction(String actionName, Object[] actionContextParams)
           
protected  Iterable<ActionDefinition> filterActions()
           
 ActionAreaPresenter getActionArea()
           
protected  Object[] getActionParameters(String actionName)
           
protected  DialogDefinition getDefinition()
           
protected  ActionExecutor getExecutor()
           
protected  info.magnolia.i18nsystem.I18nizer getI18nizer()
           
 DialogView getView()
           
 void onActionFired(String actionName, Object... actionContextParams)
           
 DialogView start(DialogDefinition definition, UiContext uiContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentProvider

protected info.magnolia.objectfactory.ComponentProvider componentProvider
Constructor Detail

BaseDialogPresenter

@Inject
public BaseDialogPresenter(info.magnolia.objectfactory.ComponentProvider componentProvider,
                                  ActionExecutor executor,
                                  DialogView view,
                                  info.magnolia.i18nsystem.I18nizer i18nizer,
                                  info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail

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.