public class JcrBrowserTreePresenter extends TreePresenter
TreePresenter
extension which is capable of listening to the SystemPropertiesVisibilityToggledEvent
and
then altering the underlying HierarchicalJcrContainer
state via HierarchicalJcrContainer.setIncludeSystemProperties(boolean)
.
Besides JcrBrowserTreePresenter
prevents system properties modifications from being persisted by means of IsNotSystemProperty
rule.
view
container, contentConnector, eventBus, ICON_PROPERTY, ICON_TRASH, viewTypeName, workbenchDefinition
Constructor and Description |
---|
JcrBrowserTreePresenter(TreeView view,
info.magnolia.objectfactory.ComponentProvider componentProvider,
SubAppContext ctx,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.v7.data.Container.Hierarchical |
createContainer() |
void |
onItemEdited(Object itemId,
Object propertyId,
com.vaadin.v7.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.
|
disableDragAndDrop, expand
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 JcrBrowserTreePresenter(TreeView view, info.magnolia.objectfactory.ComponentProvider componentProvider, SubAppContext ctx, info.magnolia.i18nsystem.SimpleTranslator i18n)
public TreeView start(WorkbenchDefinition workbenchDefinition, info.magnolia.event.EventBus eventBus, String viewTypeName, ContentConnector contentConnector)
ContentPresenter
start
in interface ContentPresenter
start
in class TreePresenter
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 onItemEdited(Object itemId, Object propertyId, com.vaadin.v7.data.Property<?> propertyDataSource)
onItemEdited
in interface TreeView.Listener
onItemEdited
in class TreePresenter
protected com.vaadin.v7.data.Container.Hierarchical createContainer()
createContainer
in class TreePresenter
Copyright © 2020 Magnolia International Ltd.. All rights reserved.