public class DetailEditorPresenter extends Object implements DetailEditorView.Listener, ActionbarPresenter.Listener
DetailSubApp
.
Contains the ActionbarPresenter
for handling action events and the DetailPresenter
for displaying the actual item.Modifier and Type | Class and Description |
---|---|
protected class |
DetailEditorPresenter.CloseEditorAfterConfirmationShortcutListener
A shortcut listener which opens a confirmation to confirm closing the DetailEditor.
|
protected class |
DetailEditorPresenter.CommitDialogShortcutListener
A shortcut listener used to commit the DetailEditor if a text area does not have focus.
|
Constructor and Description |
---|
DetailEditorPresenter(ActionExecutor actionExecutor,
SubAppContext subAppContext,
DetailEditorView view,
DetailPresenter detailPresenter,
ActionbarPresenter actionbarPresenter,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
ActionbarPresenter |
getActionbarPresenter() |
String |
getNodePath() |
void |
onActionbarItemClicked(String actionName) |
void |
onViewTypeChanged(DetailView.ViewType viewType) |
View |
start(String nodePath,
DetailView.ViewType viewType,
ContentConnector contentConnector) |
View |
start(String nodePath,
DetailView.ViewType viewType,
ContentConnector contentConnector,
String versionName) |
View |
update(DetailLocation location) |
@Inject public DetailEditorPresenter(ActionExecutor actionExecutor, SubAppContext subAppContext, DetailEditorView view, DetailPresenter detailPresenter, ActionbarPresenter actionbarPresenter, info.magnolia.i18nsystem.SimpleTranslator i18n)
public View start(String nodePath, DetailView.ViewType viewType, ContentConnector contentConnector)
public View start(String nodePath, DetailView.ViewType viewType, ContentConnector contentConnector, String versionName)
public View update(DetailLocation location)
public String getNodePath()
public ActionbarPresenter getActionbarPresenter()
public void onViewTypeChanged(DetailView.ViewType viewType)
onViewTypeChanged
in interface DetailEditorView.Listener
public void onActionbarItemClicked(String actionName)
onActionbarItemClicked
in interface ActionbarPresenter.Listener
Copyright © 2016 Magnolia International Ltd.. All rights reserved.