public class TreePresenter extends ListPresenter implements TreeView.Listener
view
container, contentConnector, eventBus, ICON_PROPERTY, ICON_TRASH, viewTypeName, workbenchDefinition
Constructor and Description |
---|
TreePresenter(TreeView view,
info.magnolia.objectfactory.ComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.data.Container.Hierarchical |
createContainer() |
void |
disableDragAndDrop() |
void |
expand(Object itemId)
Make sure the given items are visible in the content view.
|
void |
onItemEdited(Object itemId,
Object propertyId,
com.vaadin.data.Property<?> propertyDataSource) |
TreeView |
start(WorkbenchDefinition workbenchDefinition,
info.magnolia.event.EventBus eventBus,
String viewTypeName,
ContentConnector contentConnector)
Initializes the presenter with the workbench definition, eventBus and viewType name.
|
configureContainer, initializeContainer, refresh, select
getIcon
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 TreePresenter(TreeView view, info.magnolia.objectfactory.ComponentProvider componentProvider)
public TreeView start(WorkbenchDefinition workbenchDefinition, info.magnolia.event.EventBus eventBus, String viewTypeName, ContentConnector contentConnector)
ContentPresenter
start
in interface ContentPresenter
start
in class ListPresenter
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 definitionpublic void disableDragAndDrop()
public void onItemEdited(Object itemId, Object propertyId, com.vaadin.data.Property<?> propertyDataSource)
onItemEdited
in interface TreeView.Listener
public void expand(Object itemId)
ContentPresenter
expand
in interface ContentPresenter
expand
in class AbstractContentPresenterBase
protected com.vaadin.data.Container.Hierarchical createContainer()
createContainer
in class ListPresenter
Copyright © 2015 Magnolia International Ltd.. All rights reserved.