info.magnolia.pages.app.editor
Class PagesEditorSubApp
java.lang.Object
info.magnolia.ui.framework.app.BaseSubApp
info.magnolia.pages.app.editor.PagesEditorSubApp
- All Implemented Interfaces:
- PagesEditorSubAppView.Listener, ActionbarPresenter.Listener, SubApp, PageBarView.Listener
public class PagesEditorSubApp
- extends BaseSubApp
- implements PagesEditorSubAppView.Listener, ActionbarPresenter.Listener, PageBarView.Listener
PagesEditorSubApp.
Constructor Summary |
PagesEditorSubApp(ActionExecutor actionExecutor,
SubAppContext subAppContext,
PagesEditorSubAppView view,
info.magnolia.event.EventBus admincentralEventBus,
info.magnolia.event.EventBus subAppEventBus,
PageEditorPresenter pageEditorPresenter,
ActionbarPresenter actionbarPresenter,
PageBarView pageBarView,
I18NAuthoringSupport i18NAuthoringSupport,
info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.i18nsystem.SimpleTranslator i18n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PagesEditorSubApp
@Inject
public PagesEditorSubApp(ActionExecutor actionExecutor,
SubAppContext subAppContext,
PagesEditorSubAppView view,
@Named(value="admincentral")
info.magnolia.event.EventBus admincentralEventBus,
@Named(value="subapp")
info.magnolia.event.EventBus subAppEventBus,
PageEditorPresenter pageEditorPresenter,
ActionbarPresenter actionbarPresenter,
PageBarView pageBarView,
I18NAuthoringSupport i18NAuthoringSupport,
info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.i18nsystem.SimpleTranslator i18n)
getCaption
public String getCaption()
- Description copied from class:
BaseSubApp
- This method will try to determine the current sub app caption, the one usually displayed in the tab where the subapp opens.
- Specified by:
getCaption
in interface SubApp
- Overrides:
getCaption
in class BaseSubApp
- Returns:
- the configured label for this subapp. If no label is found in the subapp configuration, it will try to use the label from the parent app.
If the latter is missing too, it will return an empty string.
updateCaption
public void updateCaption(DetailLocation location)
start
public View start(Location location)
- Specified by:
start
in interface SubApp
- Overrides:
start
in class BaseSubApp
supportsLocation
public boolean supportsLocation(Location location)
- Description copied from class:
BaseSubApp
- This method is being called by the AppController when iterating over opened subApps.
The subApp itself decides whether it supports the current location based on parameters or
whether the appController should launch a new instance of the subApp.
- Specified by:
supportsLocation
in interface SubApp
- Overrides:
supportsLocation
in class BaseSubApp
getCurrentLocation
public DetailLocation getCurrentLocation()
- Wraps the current DefaultLocation in a DetailLocation. Providing getter and setters for used parameters.
- Overrides:
getCurrentLocation
in class BaseSubApp
locationChanged
public void locationChanged(Location location)
- Specified by:
locationChanged
in interface SubApp
- Overrides:
locationChanged
in class BaseSubApp
onActionbarItemClicked
public void onActionbarItemClicked(String actionName)
- Specified by:
onActionbarItemClicked
in interface ActionbarPresenter.Listener
prepareAndExecutePagesEditorAction
protected void prepareAndExecutePagesEditorAction(String actionName)
getLabel
public String getLabel(String actionName)
- Specified by:
getLabel
in interface ActionbarPresenter.Listener
getIcon
public String getIcon(String actionName)
- Specified by:
getIcon
in interface ActionbarPresenter.Listener
languageSelected
public void languageSelected(Locale locale)
- Specified by:
languageSelected
in interface PageBarView.Listener
platformSelected
public void platformSelected(PlatformType platformType)
- Specified by:
platformSelected
in interface PageBarView.Listener
onEscape
public void onEscape()
- Specified by:
onEscape
in interface PagesEditorSubAppView.Listener
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.