info.magnolia.ui.workbench.thumbnail
Class ThumbnailPresenter
java.lang.Object
info.magnolia.ui.workbench.AbstractContentPresenterBase
info.magnolia.ui.workbench.AbstractContentPresenter
info.magnolia.ui.workbench.thumbnail.ThumbnailPresenter
- All Implemented Interfaces:
- ContentPresenter, ContentView.Listener
public class ThumbnailPresenter
- extends AbstractContentPresenter
- implements ContentView.Listener
The ThumbnailPresenter is responsible for creating, configuring and updating a thumbnail grid of items according to the workbench definition.
Constructor Summary |
ThumbnailPresenter(ThumbnailView view,
info.magnolia.ui.imageprovider.ImageProvider imageProvider,
info.magnolia.objectfactory.ComponentProvider componentProvider)
|
Method Summary |
info.magnolia.ui.imageprovider.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,
info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector contentConnector)
Initializes the presenter with the workbench definition, eventBus and viewType name. |
Methods inherited from class info.magnolia.ui.workbench.AbstractContentPresenterBase |
expand, getAvailableColumns, getColumnsIterator, getComponentProvider, getPresenterDefinition, getSelectedItemId, getSelectedItemIds, onDoubleClick, onItemSelection, onRightClick, onShortcutKey, setSelectedItemIds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThumbnailPresenter
@Inject
public ThumbnailPresenter(ThumbnailView view,
info.magnolia.ui.imageprovider.ImageProvider imageProvider,
info.magnolia.objectfactory.ComponentProvider componentProvider)
getImageProvider
public info.magnolia.ui.imageprovider.ImageProvider getImageProvider()
start
public ContentView start(WorkbenchDefinition workbench,
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
- Overrides:
start
in class AbstractContentPresenterBase
- Parameters:
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 definition
- Returns:
- the content view
refresh
public void refresh()
- Description copied from interface:
ContentPresenter
- Refreshes the data container and view.
- Specified by:
refresh
in interface ContentPresenter
initializeContainer
protected com.vaadin.data.Container initializeContainer()
- Specified by:
initializeContainer
in class AbstractContentPresenterBase
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
- Overrides:
select
in class AbstractContentPresenterBase
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.