public class FormDialogPresenterImpl extends BaseDialogPresenter implements FormDialogPresenter, EditorValidator
BaseDialogPresenter.CloseDialogAfterConfirmationShortcutListener, BaseDialogPresenter.CloseDialogShortcutListener, BaseDialogPresenter.CommitDialogShortcutListener
componentProvider
Constructor and Description |
---|
FormDialogPresenterImpl(DialogDefinitionRegistry dialogDefinitionRegistry,
info.magnolia.objectfactory.ComponentProvider componentProvider,
DialogActionExecutor executor,
FormView view,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.i18nsystem.SimpleTranslator i18n,
AvailabilityChecker checker,
ContentConnector contentConnector,
FormPresenter formPresenter) |
FormDialogPresenterImpl(DialogDefinitionRegistry dialogDefinitionRegistry,
FormBuilder formBuilder,
info.magnolia.objectfactory.ComponentProvider componentProvider,
DialogActionExecutor executor,
FormView view,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.i18nsystem.SimpleTranslator i18n,
AvailabilityChecker checker,
ContentConnector contentConnector)
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<ActionDefinition> |
filterActions() |
protected Object[] |
getActionParameters(String actionName) |
protected FormDialogDefinition |
getDefinition() |
protected DialogActionExecutor |
getExecutor() |
com.vaadin.v7.data.Item |
getRelatedItem() |
FormView |
getView() |
boolean |
isValid() |
protected void |
onCancel() |
void |
showValidation(boolean visible) |
DialogView |
start(com.vaadin.v7.data.Item item,
FormDialogDefinition dialogDefinition,
UiContext uiContext,
EditorCallback callback)
Returns a
DialogView containing FormView as content. |
DialogView |
start(com.vaadin.v7.data.Item item,
FormDialogDefinition dialogDefinition,
UiContext uiContext,
EditorCallback callback,
ContentConnector contentConnector)
Starts (builds and renders) a form dialog component.
|
DialogView |
start(com.vaadin.v7.data.Item item,
String dialogId,
UiContext uiContext,
EditorCallback callback)
Starts (builds and renders) a form dialog component.
|
addShortcut, closeDialog, executeAction, getActionArea, getI18nizer, onActionFired, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addShortcut, closeDialog, getActionArea, start
@Inject public FormDialogPresenterImpl(DialogDefinitionRegistry dialogDefinitionRegistry, info.magnolia.objectfactory.ComponentProvider componentProvider, DialogActionExecutor executor, FormView view, info.magnolia.i18nsystem.I18nizer i18nizer, info.magnolia.i18nsystem.SimpleTranslator i18n, AvailabilityChecker checker, ContentConnector contentConnector, FormPresenter formPresenter)
@Deprecated 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, AvailabilityChecker checker, ContentConnector contentConnector)
public DialogView start(com.vaadin.v7.data.Item item, FormDialogDefinition dialogDefinition, UiContext uiContext, EditorCallback callback, ContentConnector contentConnector)
FormDialogPresenter
ContentConnector
parameter allows
for specifying concrete connector to be used within the dialog.start
in interface FormDialogPresenter
item
- id of a Vaadin item used as a dialogs data-source.dialogDefinition
- definition of the dialog.uiContext
- current UI context (normally this is sub-app context).callback
- callback fired when the form dialog finishes its work.contentConnector
- specific content connector to be used in the dialog.DialogView
.public DialogView start(com.vaadin.v7.data.Item item, String dialogId, UiContext uiContext, EditorCallback callback)
FormDialogPresenter
start
in interface FormDialogPresenter
dialogId
- id of the dialog.uiContext
- current UI context (normally this is sub-app context).callback
- callback fired when the form dialog finishes its work.DialogView
.public DialogView start(com.vaadin.v7.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
- dialogDefinition
- uiContext
- callback
- callback fired when the form dialog finishes its work.DialogView
.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
protected FormDialogDefinition getDefinition()
getDefinition
in class BaseDialogPresenter
protected void onCancel()
onCancel
in class BaseDialogPresenter
public com.vaadin.v7.data.Item getRelatedItem()
getRelatedItem
in interface FormDialogPresenter
Copyright © 2020 Magnolia International Ltd.. All rights reserved.