public class WorkbenchPresenter extends Object implements WorkbenchView.Listener
Modifier and Type | Field and Description |
---|---|
protected ContentConnector |
contentConnector |
Constructor and Description |
---|
WorkbenchPresenter(WorkbenchView view,
info.magnolia.objectfactory.ComponentProvider componentProvider,
WorkbenchStatusBarPresenter statusBarPresenter,
ContentConnector contentConnector) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSearchContentTool() |
void |
doSearch(String searchExpression) |
void |
expand(Object itemId) |
protected List<Object> |
filterExistingItems(List<Object> itemIds) |
ContentPresenter |
getActivePresenter() |
ContentPresenter |
getContentPresenter(String viewType) |
String |
getDefaultViewType() |
protected info.magnolia.event.EventBus |
getEventBus() |
List<Object> |
getSelectedIds() |
protected WorkbenchDefinition |
getWorkbenchDefinition() |
boolean |
hasViewType(String viewType) |
void |
onSearch(String searchExpression)
Search logic is now implemented in a corresponding tool presenter.
|
void |
onSearchQueryChange(String searchQuery) |
void |
onViewTypeChanged(String viewType) |
void |
refresh() |
Object |
resolveWorkbenchRoot()
Deprecated.
since 5.4.3. Method isn't used anymore.
|
void |
resynch(List<Object> itemIds,
String viewType,
String query) |
protected void |
sanityCheck(WorkbenchDefinition workbenchDefinition) |
void |
select(List<Object> itemIds) |
void |
select(Object itemId) |
WorkbenchView |
start(WorkbenchDefinition workbenchDefinition,
ImageProviderDefinition imageProviderDefinition,
info.magnolia.event.EventBus eventBus) |
protected ContentConnector contentConnector
@Inject public WorkbenchPresenter(WorkbenchView view, info.magnolia.objectfactory.ComponentProvider componentProvider, WorkbenchStatusBarPresenter statusBarPresenter, ContentConnector contentConnector)
public WorkbenchView start(WorkbenchDefinition workbenchDefinition, ImageProviderDefinition imageProviderDefinition, info.magnolia.event.EventBus eventBus)
@Deprecated public Object resolveWorkbenchRoot()
protected void sanityCheck(WorkbenchDefinition workbenchDefinition)
protected void addSearchContentTool()
public void onSearch(String searchExpression)
onSearch
in interface WorkbenchView.Listener
SearchContentToolPresenter
public void onViewTypeChanged(String viewType)
onViewTypeChanged
in interface WorkbenchView.Listener
public void onSearchQueryChange(String searchQuery)
onSearchQueryChange
in interface WorkbenchView.Listener
public void expand(Object itemId)
public void select(Object itemId)
public void refresh()
public String getDefaultViewType()
public boolean hasViewType(String viewType)
public void doSearch(String searchExpression)
public final ContentPresenter getActivePresenter()
protected final info.magnolia.event.EventBus getEventBus()
protected final WorkbenchDefinition getWorkbenchDefinition()
public final ContentPresenter getContentPresenter(String viewType)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.