info.magnolia.ui.admincentral.tree.view
Class TreeViewImpl

java.lang.Object
  extended by info.magnolia.ui.admincentral.tree.view.TreeViewImpl
All Implemented Interfaces:
ContentView, TreeView, info.magnolia.ui.framework.view.View, Serializable

public class TreeViewImpl
extends Object
implements TreeView

Vaadin UI component that displays a tree.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.admincentral.content.view.ContentView
ContentView.Listener, ContentView.ViewType
 
Constructor Summary
TreeViewImpl(info.magnolia.ui.model.workbench.definition.WorkbenchDefinition workbench, info.magnolia.objectfactory.ComponentProvider componentProvider, HierarchicalJcrContainer container)
          Instantiates a new content tree view.
 
Method Summary
 com.vaadin.ui.Component asVaadinComponent()
           
protected  void buildColumns(com.vaadin.ui.TreeTable treeTable, com.vaadin.data.Container container, List<info.magnolia.ui.model.column.definition.ColumnDefinition> columns, info.magnolia.objectfactory.ComponentProvider componentProvider)
          Sets the columns for the vaadin TreeTable, based on workbench columns configuration.
 info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer getContainer()
           
 ContentView.ViewType getViewType()
           
 void refresh()
           
 void select(String path)
          Selects the item with given path in the content view.
 void setListener(ContentView.Listener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeViewImpl

public TreeViewImpl(info.magnolia.ui.model.workbench.definition.WorkbenchDefinition workbench,
                    info.magnolia.objectfactory.ComponentProvider componentProvider,
                    HierarchicalJcrContainer container)
Instantiates a new content tree view.

Parameters:
workbench - the workbench definition
componentProvider - the component provider
container - the container data source
Method Detail

buildColumns

protected void buildColumns(com.vaadin.ui.TreeTable treeTable,
                            com.vaadin.data.Container container,
                            List<info.magnolia.ui.model.column.definition.ColumnDefinition> columns,
                            info.magnolia.objectfactory.ComponentProvider componentProvider)
Sets the columns for the vaadin TreeTable, based on workbench columns configuration.

Parameters:
treeTable - the TreeTable vaadin component
container - the container data source
columns - the list of ColumnDefinitions
componentProvider - the component provider

select

public void select(String path)
Description copied from interface: ContentView
Selects the item with given path in the content view.

Specified by:
select in interface ContentView
Parameters:
path - relative to the tree root, must start with '/'

refresh

public void refresh()
Specified by:
refresh in interface ContentView

getContainer

public info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer getContainer()
Specified by:
getContainer in interface ContentView

getViewType

public ContentView.ViewType getViewType()
Specified by:
getViewType in interface ContentView

setListener

public void setListener(ContentView.Listener listener)
Specified by:
setListener in interface ContentView

asVaadinComponent

public com.vaadin.ui.Component asVaadinComponent()
Specified by:
asVaadinComponent in interface info.magnolia.ui.framework.view.View


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.