public class BrowserPresenter extends Object implements ActionbarPresenter.Listener, BrowserView.Listener
Its main configuration point is the WorkbenchDefinition
through which one defines the JCR workspace to connect to, the columns/properties to display, the available actions and so on.
Constructor and Description |
---|
BrowserPresenter(ActionExecutor actionExecutor,
SubAppContext subAppContext,
BrowserView view,
info.magnolia.event.EventBus admincentralEventBus,
info.magnolia.event.EventBus subAppEventBus,
ActionbarPresenter actionbarPresenter,
info.magnolia.objectfactory.ComponentProvider componentProvider,
WorkbenchPresenter workbenchPresenter) |
Modifier and Type | Method and Description |
---|---|
ActionbarPresenter |
getActionbarPresenter() |
String |
getDefaultViewType() |
String |
getIcon(String itemName) |
String |
getLabel(String itemName) |
List<String> |
getSelectedItemIds() |
BrowserView |
getView() |
String |
getWorkspace() |
boolean |
hasViewType(String viewType) |
void |
onActionbarItemClicked(String itemName) |
void |
onActionBarSelection(String actionName) |
void |
resync(List<String> itemIds,
String viewType,
String query)
Synchronizes the underlying view to reflect the status extracted from the Location token, i.e.
|
BrowserView |
start() |
@Inject public BrowserPresenter(ActionExecutor actionExecutor, SubAppContext subAppContext, BrowserView view, @Named(value="admincentral") info.magnolia.event.EventBus admincentralEventBus, @Named(value="subapp") info.magnolia.event.EventBus subAppEventBus, ActionbarPresenter actionbarPresenter, info.magnolia.objectfactory.ComponentProvider componentProvider, WorkbenchPresenter workbenchPresenter)
public BrowserView start()
public String getDefaultViewType()
public boolean hasViewType(String viewType)
public BrowserView getView()
public ActionbarPresenter getActionbarPresenter()
public String getWorkspace()
public void resync(List<String> itemIds, String viewType, String query)
public void onActionbarItemClicked(String itemName)
onActionbarItemClicked
in interface ActionbarPresenter.Listener
public void onActionBarSelection(String actionName)
onActionBarSelection
in interface BrowserView.Listener
public String getLabel(String itemName)
getLabel
in interface ActionbarPresenter.Listener
public String getIcon(String itemName)
getIcon
in interface ActionbarPresenter.Listener
Copyright © 2015 Magnolia International Ltd.. All rights reserved.