V
- View
implementation used by subApp.public class BaseSubApp<V extends View> extends Object implements SubApp, UiFrameworkView
SubApp
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
BaseSubApp(SubAppContext subAppContext,
V view) |
Modifier and Type | Method and Description |
---|---|
AppContext |
getAppContext() |
String |
getCaption()
This method will try to determine the current sub app caption, the one usually displayed in the tab where the subapp opens.
|
protected Location |
getCurrentLocation() |
UiContextReference |
getCurrentViewReference() |
String |
getIcon(Location location) |
SubAppContext |
getSubAppContext() |
String |
getSubAppId() |
V |
getView() |
boolean |
isCloseable() |
void |
locationChanged(Location location) |
protected void |
onSubAppStart()
This hook-up method is called on
start(info.magnolia.ui.api.location.Location) and enables subclasses to perform additional work before the view is displayed. |
protected void |
onSubAppStop()
This hook-up method is called on
stop() and enables subclasses to perform additional work when stopping the subApp. |
V |
start(Location location) |
void |
stop() |
boolean |
supportsLocation(Location location)
This method is being called by the AppController when iterating over opened subApps.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessViewBeanStore, asVaadinComponent, bindContext, bindInstance, create, create, create, create, destroy, getComponentProvider
protected BaseSubApp(SubAppContext subAppContext, V view)
public void locationChanged(Location location)
locationChanged
in interface SubApp
public boolean supportsLocation(Location location)
supportsLocation
in interface SubApp
public UiContextReference getCurrentViewReference()
getCurrentViewReference
in interface UiFrameworkView
protected void onSubAppStart()
start(info.magnolia.ui.api.location.Location)
and enables subclasses to perform additional work before the view is displayed.
The default implementation does nothing.protected void onSubAppStop()
stop()
and enables subclasses to perform additional work when stopping the subApp.
The default implementation does nothing.public SubAppContext getSubAppContext()
public String getSubAppId()
getSubAppId
in interface SubApp
public AppContext getAppContext()
public String getCaption()
getCaption
in interface SubApp
protected Location getCurrentLocation()
public boolean isCloseable()
isCloseable
in interface SubApp
Copyright © 2019 Magnolia International Ltd.. All rights reserved.