info.magnolia.ui.workbench
Class AbstractContentPresenterBase
java.lang.Object
info.magnolia.ui.workbench.AbstractContentPresenterBase
- All Implemented Interfaces:
- ContentPresenter, ContentView.Listener
- Direct Known Subclasses:
- AbstractContentPresenter
public abstract class AbstractContentPresenterBase
- extends Object
- implements ContentPresenter, ContentView.Listener
Abstract JCR-agnostic ContentPresenter
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ICON_PROPERTY
protected static final String ICON_PROPERTY
- See Also:
- Constant Field Values
ICON_TRASH
protected static final String ICON_TRASH
- See Also:
- Constant Field Values
eventBus
protected info.magnolia.event.EventBus eventBus
workbenchDefinition
protected WorkbenchDefinition workbenchDefinition
viewTypeName
protected String viewTypeName
contentConnector
protected info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector contentConnector
container
protected com.vaadin.data.Container container
AbstractContentPresenterBase
public AbstractContentPresenterBase(info.magnolia.objectfactory.ComponentProvider componentProvider)
getComponentProvider
protected info.magnolia.objectfactory.ComponentProvider getComponentProvider()
start
public ContentView start(WorkbenchDefinition workbenchDefinition,
info.magnolia.event.EventBus eventBus,
String viewTypeName,
info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector contentConnector)
- Description copied from interface:
ContentPresenter
- Initializes the presenter with the workbench definition, eventBus and viewType name.
- Specified by:
start
in interface ContentPresenter
- Parameters:
workbenchDefinition
- the workbench definition that defines which data to presenteventBus
- the event bus to fire e.g. selection events onviewTypeName
- the view type as defined in the presenter definition
- Returns:
- the content view
getSelectedItemIds
public List<Object> getSelectedItemIds()
- Specified by:
getSelectedItemIds
in interface ContentPresenter
- Returns:
- the selected item ids in the content view.
getSelectedItemId
public Object getSelectedItemId()
setSelectedItemIds
public void setSelectedItemIds(List<Object> selectedItemIds)
- Description copied from interface:
ContentPresenter
- Sets the selected item ids for this presenter to react on, e.g. with keyboard shortcuts.
- Specified by:
setSelectedItemIds
in interface ContentPresenter
onItemSelection
public void onItemSelection(Set<Object> itemIds)
- Specified by:
onItemSelection
in interface ContentView.Listener
onDoubleClick
public void onDoubleClick(Object itemId)
- Specified by:
onDoubleClick
in interface ContentView.Listener
onRightClick
public void onRightClick(Object itemId,
int clickX,
int clickY)
- Specified by:
onRightClick
in interface ContentView.Listener
onShortcutKey
public void onShortcutKey(int keyCode,
int[] modifierKeys)
- Specified by:
onShortcutKey
in interface ContentView.Listener
getColumnsIterator
protected Iterator<ColumnDefinition> getColumnsIterator()
getIcon
public abstract String getIcon(com.vaadin.data.Item item)
- Specified by:
getIcon
in interface ContentView.Listener
getAvailableColumns
protected List<ColumnDefinition> getAvailableColumns(List<ColumnDefinition> allColumns)
select
public void select(List<Object> itemIds)
- Description copied from interface:
ContentPresenter
- Selects the given items in the content view.
- Specified by:
select
in interface ContentPresenter
expand
public void expand(Object itemId)
- Description copied from interface:
ContentPresenter
- Make sure the given items are visible in the content view.
- Specified by:
expand
in interface ContentPresenter
initializeContainer
protected abstract com.vaadin.data.Container initializeContainer()
getPresenterDefinition
protected ContentPresenterDefinition getPresenterDefinition()
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.