|
||||||||||
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.browser.BrowserSubApp
public class BrowserSubApp
Base implementation of a content subApp. A content subApp displays a collection of data represented inside a ContentView
created by the WorkbenchPresenter
.
This class Provides sensible implementation for services shared by all content subApps. Out-of-the-box it will handle the following:
locationChanged(Location)
start(Location)
BrowserPresenter
,
ContentSubAppView
,
ContentApp
,
BrowserLocation
Constructor Summary | |
---|---|
BrowserSubApp(ActionExecutor actionExecutor,
SubAppContext subAppContext,
ContentSubAppView view,
BrowserPresenter browser,
info.magnolia.event.EventBus subAppEventBus,
info.magnolia.objectfactory.ComponentProvider componentProvider)
|
Method Summary | |
---|---|
protected BrowserPresenter |
getBrowser()
|
BrowserLocation |
getCurrentLocation()
Wraps the current DefaultLocation in a BrowserLocation . |
static List<javax.jcr.Item> |
getJcrItemsExceptOne(String workspaceName,
List<String> ids,
String itemIdToExclude)
|
ContentSubAppView |
getView()
|
void |
locationChanged(Location location)
The default implementation selects the path in the current workspace and updates the available actions in the actionbar. |
protected void |
restoreBrowser(BrowserLocation location)
Restores the browser status based on the information available in the location object. |
void |
showActionPopup(String absItemPath,
int x,
int y)
Show the actionPopup for the specified item at the specified coordinates. |
View |
start(Location location)
Performs some routine tasks needed by all content subapps before the view is displayed. |
void |
updateActionbar(ActionbarPresenter actionbar)
Update the items in the actionbar based on the selected item and the action availability configuration. |
Methods inherited from class info.magnolia.ui.framework.app.BaseSubApp |
---|
getAppContext, getCaption, getSubAppContext, getSubAppId, isCloseable, onSubAppStart, onSubAppStop, stop, supportsLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public BrowserSubApp(ActionExecutor actionExecutor, SubAppContext subAppContext, ContentSubAppView view, BrowserPresenter browser, @Named(value="subapp") info.magnolia.event.EventBus subAppEventBus, info.magnolia.objectfactory.ComponentProvider componentProvider)
Method Detail |
---|
public final View start(Location location)
restoreBrowser(BrowserLocation)
BaseSubApp.onSubAppStart()
a hook-up method subclasses can override to perform additional work.
start
in interface SubApp
start
in class BaseSubApp
protected final void restoreBrowser(BrowserLocation location)
#app:myapp:browser;/foo/bar:list
this method will select the path /foo/bar
in the workspace used by the app, set the view type as list
and finally update the available actions.
In case of a search view the URI fragment will look similar to the following one #app:myapp:browser;/:search:qux
then this method will select the root path, set the view type as search
, perform a search for "qux" in the workspace used by the app and finally update the available actions.
updateActionbar(ActionbarPresenter)
,
start(Location)
,
Location
public void showActionPopup(String absItemPath, int x, int y)
public void updateActionbar(ActionbarPresenter actionbar)
updateActionPopup(info.magnolia.ui.vaadin.actionbar.ActionPopup)
.
restoreBrowser(BrowserLocation)
,
locationChanged(Location)
,
ActionbarPresenter
protected final BrowserPresenter getBrowser()
public final ContentSubAppView getView()
getView
in interface SubApp
getView
in class BaseSubApp
public void locationChanged(Location location)
locationChanged
in interface SubApp
locationChanged
in class BaseSubApp
public BrowserLocation getCurrentLocation()
BrowserLocation
. Providing getter and setters for used parameters.
getCurrentLocation
in class BaseSubApp
public static List<javax.jcr.Item> getJcrItemsExceptOne(String workspaceName, List<String> ids, String itemIdToExclude)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |