|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.framework.app.BaseSubApp
public class BaseSubApp
Basic implementation of a subApp with default behavior suitable for most sub apps.
SubApp
Constructor Summary | |
---|---|
protected |
BaseSubApp(SubAppContext subAppContext,
View view)
|
Method Summary | |
---|---|
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()
|
SubAppContext |
getSubAppContext()
|
String |
getSubAppId()
|
View |
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. |
View |
start(Location location)
|
void |
stop()
|
boolean |
supportsLocation(Location location)
This method is being called by the AppController when iterating over opened subApps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseSubApp(SubAppContext subAppContext, View view)
Method Detail |
---|
public View start(Location location)
start
in interface SubApp
public void stop()
stop
in interface SubApp
public void locationChanged(Location location)
locationChanged
in interface SubApp
public boolean supportsLocation(Location location)
supportsLocation
in interface SubApp
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 View getView()
getView
in interface SubApp
public AppContext getAppContext()
public String getCaption()
getCaption
in interface SubApp
protected Location getCurrentLocation()
public boolean isCloseable()
isCloseable
in interface SubApp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |