public class DetailSubApp extends BaseSubApp<ContentSubAppView>
BrowserSubApp
. Subclasses can
augment the default behavior and perform additional tasks by overriding the
following methods:
Currently lacking listeners for ContentChangedEvent
. Currently
lacking handling of locationChanged. Related to MGNLUI-154Modifier | Constructor and Description |
---|---|
protected |
DetailSubApp(SubAppContext subAppContext,
ContentSubAppView view,
info.magnolia.event.EventBus adminCentralEventBus,
DetailEditorPresenter presenter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
ContentConnector contentConnector) |
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseCaption(DetailLocation location)
Create the base caption string.
|
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 ItemLocation.
|
String |
getIcon(Location location) |
void |
locationChanged(Location location)
On location change, reload the view and tab caption.
|
protected void |
setCaption(DetailLocation location)
Set the Tab caption.
|
ContentSubAppView |
start(Location location)
Performs some routine tasks needed by all item subApps before the view is displayed.
|
boolean |
supportsLocation(Location location)
This method is being called by the AppController when iterating over opened subApps.
|
getAppContext, getCurrentViewReference, getSubAppContext, getSubAppId, getView, isCloseable, onSubAppStart, onSubAppStop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessViewBeanStore, asVaadinComponent, bindContext, bindInstance, create, create, create, create, destroy, getComponentProvider
@Inject protected DetailSubApp(SubAppContext subAppContext, ContentSubAppView view, @Named(value="admincentral") info.magnolia.event.EventBus adminCentralEventBus, DetailEditorPresenter presenter, info.magnolia.i18nsystem.SimpleTranslator i18n, ContentConnector contentConnector)
public ContentSubAppView start(Location location)
BaseSubApp.onSubAppStart()
a hook-up method subclasses can override to perform additional work.
start
in interface SubApp
start
in class BaseSubApp<ContentSubAppView>
public DetailLocation getCurrentLocation()
getCurrentLocation
in class BaseSubApp<ContentSubAppView>
public boolean supportsLocation(Location location)
BaseSubApp
supportsLocation
in interface SubApp
supportsLocation
in class BaseSubApp<ContentSubAppView>
public void locationChanged(Location location)
locationChanged
in interface SubApp
locationChanged
in class BaseSubApp<ContentSubAppView>
public String getCaption()
BaseSubApp
getCaption
in interface SubApp
getCaption
in class BaseSubApp<ContentSubAppView>
protected void setCaption(DetailLocation location)
DetailLocation
, add this version information to the Tab caption.public String getIcon(Location location)
getIcon
in interface SubApp
getIcon
in class BaseSubApp<ContentSubAppView>
protected String getBaseCaption(DetailLocation location)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.