|
||||||||||
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 info.magnolia.ui.contentapp.detail.DetailSubApp
public class DetailSubApp
Base implementation of an item subApp. Provides sensible implementation for
services shared by all item subApps. Implementers of this class represent a
tab for viewing and editing items typically opened from an BrowserSubApp
. Subclasses can
augment the default behavior and perform additional tasks by overriding the
following methods:
ContentChangedEvent
. Currently
lacking handling of locationChanged. Related to MGNLUI-154
DetailEditorPresenter
,
ContentSubAppView
,
DetailLocation
Constructor Summary | |
---|---|
protected |
DetailSubApp(SubAppContext subAppContext,
ContentSubAppView view,
info.magnolia.event.EventBus adminCentralEventBus,
DetailEditorPresenter workbench,
info.magnolia.i18nsystem.SimpleTranslator i18n)
|
Method Summary | |
---|---|
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. |
ContentSubAppView |
getView()
|
protected String |
getWorkspace()
|
void |
locationChanged(Location location)
On location change, reload the view and tab caption. |
protected void |
setCaption(DetailLocation location)
Set the Tab caption. |
View |
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. |
Methods inherited from class info.magnolia.ui.framework.app.BaseSubApp |
---|
getAppContext, getSubAppContext, getSubAppId, isCloseable, onSubAppStart, onSubAppStop, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject protected DetailSubApp(SubAppContext subAppContext, ContentSubAppView view, @Named(value="admincentral") info.magnolia.event.EventBus adminCentralEventBus, DetailEditorPresenter workbench, info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail |
---|
public View start(Location location)
BaseSubApp.onSubAppStart()
a hook-up method subclasses can override to perform additional work.
start
in interface SubApp
start
in class BaseSubApp
public DetailLocation getCurrentLocation()
getCurrentLocation
in class BaseSubApp
public ContentSubAppView getView()
getView
in interface SubApp
getView
in class BaseSubApp
public boolean supportsLocation(Location location)
BaseSubApp
supportsLocation
in interface SubApp
supportsLocation
in class BaseSubApp
public void locationChanged(Location location)
locationChanged
in interface SubApp
locationChanged
in class BaseSubApp
public String getCaption()
BaseSubApp
getCaption
in interface SubApp
getCaption
in class BaseSubApp
protected String getWorkspace()
protected void setCaption(DetailLocation location)
DetailLocation
, add this version information to the Tab caption.
protected String getBaseCaption(DetailLocation location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |