public class DetailSubApp extends info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
BrowserSubApp
. Subclasses can
augment the default behavior and perform additional tasks by overriding the
following methods:
BaseSubApp.onSubAppStart()
locationChanged(Location)
ContentChangedEvent
. Currently
lacking handling of locationChanged. Related to MGNLUI-154DetailEditorPresenter
,
ContentSubAppView
,
DetailLocation
Modifier | Constructor and Description |
---|---|
protected |
DetailSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext,
ContentSubAppView view,
info.magnolia.event.EventBus adminCentralEventBus,
DetailEditorPresenter presenter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector contentConnector) |
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseCaption(DetailLocation location)
Create the base caption string.
|
String |
getCaption() |
DetailLocation |
getCurrentLocation()
Wraps the current DefaultLocation in a ItemLocation.
|
void |
locationChanged(info.magnolia.ui.api.location.Location location)
On location change, reload the view and tab caption.
|
protected void |
setCaption(DetailLocation location)
Set the Tab caption.
|
ContentSubAppView |
start(info.magnolia.ui.api.location.Location location)
Performs some routine tasks needed by all item subApps before the view is displayed.
|
boolean |
supportsLocation(info.magnolia.ui.api.location.Location location) |
@Inject protected DetailSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext, ContentSubAppView view, @Named(value="admincentral") info.magnolia.event.EventBus adminCentralEventBus, DetailEditorPresenter presenter, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector contentConnector)
public ContentSubAppView start(info.magnolia.ui.api.location.Location location)
BaseSubApp.onSubAppStart()
a hook-up method subclasses can override to perform additional work.
start
in interface info.magnolia.ui.api.app.SubApp
start
in class info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
public DetailLocation getCurrentLocation()
getCurrentLocation
in class info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
public boolean supportsLocation(info.magnolia.ui.api.location.Location location)
supportsLocation
in interface info.magnolia.ui.api.app.SubApp
supportsLocation
in class info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
public void locationChanged(info.magnolia.ui.api.location.Location location)
locationChanged
in interface info.magnolia.ui.api.app.SubApp
locationChanged
in class info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
public String getCaption()
getCaption
in interface info.magnolia.ui.api.app.SubApp
getCaption
in class info.magnolia.ui.framework.app.BaseSubApp<ContentSubAppView>
protected void setCaption(DetailLocation location)
DetailLocation
, add this version information to the Tab caption.protected String getBaseCaption(DetailLocation location)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.