public class FormDialogPresenterImpl extends BaseDialogPresenter implements FormDialogPresenter, EditorValidator
BaseDialogPresenter.CloseDialogAfterConfirmationShortcutListener, BaseDialogPresenter.CloseDialogShortcutListener, BaseDialogPresenter.CommitDialogShortcutListener
componentProvider
Constructor and Description |
---|
FormDialogPresenterImpl(DialogDefinitionRegistry dialogDefinitionRegistry,
FormBuilder formBuilder,
info.magnolia.objectfactory.ComponentProvider componentProvider,
DialogActionExecutor executor,
FormView view,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<ActionDefinition> |
filterActions() |
protected Object[] |
getActionParameters(String actionName) |
protected DialogActionExecutor |
getExecutor() |
FormView |
getView() |
boolean |
isValid() |
void |
showValidation(boolean visible) |
DialogView |
start(com.vaadin.data.Item item,
FormDialogDefinition dialogDefinition,
UiContext uiContext,
EditorCallback callback)
Returns a
DialogView containing FormView as content. |
DialogView |
start(com.vaadin.data.Item item,
String dialogId,
UiContext uiContext,
EditorCallback callback) |
addShortcut, closeDialog, executeAction, getActionArea, getDefinition, getI18nizer, onActionFired, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addShortcut, closeDialog, getActionArea, start
@Inject public FormDialogPresenterImpl(DialogDefinitionRegistry dialogDefinitionRegistry, FormBuilder formBuilder, info.magnolia.objectfactory.ComponentProvider componentProvider, DialogActionExecutor executor, FormView view, info.magnolia.i18nsystem.I18nizer i18nizer, info.magnolia.i18nsystem.SimpleTranslator i18n)
public DialogView start(com.vaadin.data.Item item, String dialogId, UiContext uiContext, EditorCallback callback)
start
in interface FormDialogPresenter
public DialogView start(com.vaadin.data.Item item, FormDialogDefinition dialogDefinition, UiContext uiContext, EditorCallback callback)
DialogView
containing FormView
as content.
FormView
as content of the created DialogView
.start
in interface FormDialogPresenter
item
- passed on toFormDialogPresenter
dialogDefinition
- uiContext
- public FormView getView()
getView
in interface DialogPresenter
getView
in interface FormDialogPresenter
getView
in class BaseDialogPresenter
public void showValidation(boolean visible)
showValidation
in interface EditorValidator
public boolean isValid()
isValid
in interface EditorValidator
protected DialogActionExecutor getExecutor()
getExecutor
in class BaseDialogPresenter
protected Iterable<ActionDefinition> filterActions()
filterActions
in class BaseDialogPresenter
protected Object[] getActionParameters(String actionName)
getActionParameters
in class BaseDialogPresenter
Copyright © 2015 Magnolia International Ltd.. All rights reserved.