public class ThumbnailPresenter extends AbstractContentPresenter implements ContentView.Listener
contentConnector, eventBus, ICON_PROPERTY, ICON_TRASH, viewTypeName, workbenchDefinition
Constructor and Description |
---|
ThumbnailPresenter(ThumbnailView view,
ImageProvider imageProvider,
info.magnolia.objectfactory.ComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
ImageProvider |
getImageProvider() |
protected com.vaadin.data.Container |
initializeContainer() |
void |
refresh()
Refreshes the data container and view.
|
void |
select(List<Object> itemIds)
Selects the given items in the content view.
|
ContentView |
start(WorkbenchDefinition workbench,
info.magnolia.event.EventBus eventBus,
String viewTypeName,
ContentConnector contentConnector)
Initializes the presenter with the workbench definition, eventBus and viewType name.
|
getIcon
expand, getAvailableColumns, getColumnsIterator, getComponentProvider, getPresenterDefinition, getSelectedItemId, getSelectedItemIds, onDoubleClick, onItemSelection, onRightClick, onShortcutKey, setSelectedItemIds
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIcon, onDoubleClick, onItemSelection, onRightClick, onShortcutKey
@Inject public ThumbnailPresenter(ThumbnailView view, ImageProvider imageProvider, info.magnolia.objectfactory.ComponentProvider componentProvider)
public ImageProvider getImageProvider()
public ContentView start(WorkbenchDefinition workbench, info.magnolia.event.EventBus eventBus, String viewTypeName, ContentConnector contentConnector)
ContentPresenter
start
in interface ContentPresenter
start
in class AbstractContentPresenterBase
workbench
- 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 definitionpublic void refresh()
ContentPresenter
refresh
in interface ContentPresenter
refresh
in class AbstractContentPresenter
protected com.vaadin.data.Container initializeContainer()
initializeContainer
in class AbstractContentPresenterBase
public void select(List<Object> itemIds)
ContentPresenter
select
in interface ContentPresenter
select
in class AbstractContentPresenterBase
Copyright © 2017 Magnolia International Ltd.. All rights reserved.