public class PagesEditorSubApp extends BaseSubApp<PagesEditorSubAppView> implements PagesEditorSubAppView.Listener, ActionbarPresenter.Listener, PageBarView.Listener
Modifier and Type | Field and Description |
---|---|
protected static String[] |
ALL_SECTIONS |
protected static String |
PROPERTY_TITLE |
protected static String |
SECTION_AREA |
protected static String |
SECTION_COMPONENT |
protected static String |
SECTION_EDITABLE_AREA |
protected static String |
SECTION_OPTIONAL_AREA |
protected static String |
SECTION_OPTIONAL_EDITABLE_AREA |
protected static String |
SECTION_PAGE |
protected static String |
SECTION_PAGE_DELETE |
protected static String |
SECTION_PAGE_PREVIEW |
Constructor and Description |
---|
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)
Deprecated.
since 5.2.4 - use info.magnolia.pages.app.editor.PagesEditorSubApp#PagesEditorSubApp(info.magnolia.ui.api.action.ActionExecutor, info.magnolia.ui.api.app.SubAppContext, info.magnolia.pages.app.editor.PagesEditorSubAppView, info.magnolia.event.EventBus, info.magnolia.event.EventBus, info.magnolia.pages.app.editor.PageEditorPresenter, info.magnolia.ui.actionbar.ActionbarPresenter, info.magnolia.ui.vaadin.editor.pagebar.PageBarView, info.magnolia.ui.api.i18n.I18NAuthoringSupport, info.magnolia.cms.i18n.I18nContentSupport, info.magnolia.cms.core.version.VersionManager, info.magnolia.i18nsystem.SimpleTranslator, info.magnolia.ui.api.availability.AvailabilityChecker, info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector)
|
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,
StatusBarView statusBarView) |
Modifier and Type | Method and Description |
---|---|
String |
getCaption()
This method will try to determine the current sub app caption, the one usually displayed in the tab where the subapp opens.
|
DetailLocation |
getCurrentLocation()
Wraps the current DefaultLocation in a DetailLocation.
|
String |
getIcon(String actionName) |
String |
getLabel(String actionName) |
void |
languageSelected(Locale locale) |
void |
locationChanged(Location location) |
void |
onActionbarItemClicked(String actionName) |
void |
onEscape() |
void |
platformSelected(PlatformType platformType) |
protected void |
prepareAndExecutePagesEditorAction(String actionName) |
PagesEditorSubAppView |
start(Location location) |
boolean |
supportsLocation(Location location)
This method is being called by the AppController when iterating over opened subApps.
|
void |
updateCaption(DetailLocation location) |
getAppContext, getSubAppContext, getSubAppId, getView, isCloseable, onSubAppStart, onSubAppStop, stop
protected static final String PROPERTY_TITLE
protected static final String SECTION_PAGE
protected static final String SECTION_PAGE_PREVIEW
protected static final String SECTION_AREA
protected static final String SECTION_EDITABLE_AREA
protected static final String SECTION_COMPONENT
protected static final String SECTION_PAGE_DELETE
protected static final String SECTION_OPTIONAL_AREA
protected static final String SECTION_OPTIONAL_EDITABLE_AREA
protected static final String[] ALL_SECTIONS
@Deprecated 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)
@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, StatusBarView statusBarView)
public String getCaption()
BaseSubApp
getCaption
in interface SubApp
getCaption
in class BaseSubApp<PagesEditorSubAppView>
public void updateCaption(DetailLocation location)
public PagesEditorSubAppView start(Location location)
start
in interface SubApp
start
in class BaseSubApp<PagesEditorSubAppView>
public boolean supportsLocation(Location location)
BaseSubApp
supportsLocation
in interface SubApp
supportsLocation
in class BaseSubApp<PagesEditorSubAppView>
public DetailLocation getCurrentLocation()
getCurrentLocation
in class BaseSubApp<PagesEditorSubAppView>
public void locationChanged(Location location)
locationChanged
in interface SubApp
locationChanged
in class BaseSubApp<PagesEditorSubAppView>
public void onActionbarItemClicked(String actionName)
onActionbarItemClicked
in interface ActionbarPresenter.Listener
protected void prepareAndExecutePagesEditorAction(String actionName)
public String getLabel(String actionName)
getLabel
in interface ActionbarPresenter.Listener
public String getIcon(String actionName)
getIcon
in interface ActionbarPresenter.Listener
public void languageSelected(Locale locale)
languageSelected
in interface PageBarView.Listener
public void platformSelected(PlatformType platformType)
platformSelected
in interface PageBarView.Listener
public void onEscape()
onEscape
in interface PagesEditorSubAppView.Listener
Copyright © 2015 Magnolia International Ltd.. All rights reserved.