ContentBrowserSubApp
instead.@Deprecated public class BrowserSubApp extends BaseSubApp<ContentSubAppView>
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)
Modifier and Type | Field and Description |
---|---|
protected ContentConnector |
contentConnector
Deprecated.
|
Constructor and Description |
---|
BrowserSubApp(ActionExecutor actionExecutor,
SubAppContext subAppContext,
ContentSubAppView view,
BrowserPresenter browser,
info.magnolia.event.EventBus subAppEventBus,
info.magnolia.event.EventBus adminCentralEventBus,
ContentConnector contentConnector,
AvailabilityChecker checker)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applySelectionToLocation(BrowserLocation location,
Object selectedId)
Deprecated.
|
protected BrowserPresenter |
getBrowser()
Deprecated.
|
BrowserLocation |
getCurrentLocation()
Deprecated.
Wraps the current DefaultLocation in a
BrowserLocation . |
void |
locationChanged(Location location)
Deprecated.
The default implementation selects the path in the current workspace and updates the available actions in the actionbar.
|
protected void |
restoreBrowser(BrowserLocation location)
Deprecated.
Restores the browser status based on the information available in the location object.
|
void |
showActionPopup(Object itemId,
int x,
int y)
Deprecated.
Show the actionPopup for the specified item at the specified coordinates.
|
ContentSubAppView |
start(Location location)
Deprecated.
Performs some routine tasks needed by all content subapps before the view is displayed.
|
void |
updateActionbar(ActionbarPresenter actionbar)
Deprecated.
Update the items in the actionbar based on the selected item and the action availability configuration.
|
destroy, getAppContext, getCaption, getCurrentViewReference, getIcon, getSubAppContext, getSubAppId, getView, isCloseable, onSubAppStart, onSubAppStop, stop, supportsLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessViewBeanStore, asVaadinComponent, bindContext, bindInstance, create, create, create, create, getComponentProvider
protected ContentConnector contentConnector
@Inject public BrowserSubApp(ActionExecutor actionExecutor, SubAppContext subAppContext, ContentSubAppView view, BrowserPresenter browser, @Named(value="subapp") info.magnolia.event.EventBus subAppEventBus, @Named(value="admincentral") info.magnolia.event.EventBus adminCentralEventBus, ContentConnector contentConnector, AvailabilityChecker checker)
public ContentSubAppView 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<ContentSubAppView>
protected 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.
public void showActionPopup(Object itemId, int x, int y)
public void updateActionbar(ActionbarPresenter actionbar)
updateActionPopup(info.magnolia.ui.vaadin.actionbar.ActionPopup)
.protected final BrowserPresenter getBrowser()
public void locationChanged(Location location)
locationChanged
in interface SubApp
locationChanged
in class BaseSubApp<ContentSubAppView>
public BrowserLocation getCurrentLocation()
BrowserLocation
. Providing getter and setters for used parameters.getCurrentLocation
in class BaseSubApp<ContentSubAppView>
protected void applySelectionToLocation(BrowserLocation location, Object selectedId)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.