Package org.eclnt.ccaddons.pbc
Class CCDataTree
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCDataTree
- All Implemented Interfaces:
Serializable,org.eclnt.jsfserver.elements.IConfiguredByLayout,org.eclnt.jsfserver.pagebean.component.IPageBeanComponent,org.eclnt.jsfserver.pagebean.IPageBean,org.eclnt.jsfserver.util.valuemgmt.IDynamicContentBindingObject
public class CCDataTree
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDefault implementation of listener.static enumDifferent ways to calculate the data columns.static interfaceListener that tells about events within the tree/grid processing.classNested classes/interfaces inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.jsfserver.pagebean.component.PageBeanComponent.ILiteralResolver, org.eclnt.jsfserver.pagebean.component.PageBeanComponent.LitMap -
Field Summary
Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBindingString[]org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCDataTree.TreeNode>getTree()voidprepareData(List<Map<String, Object>> data, CCDataTree.IListener listener) Passes the data into the tree processing.voidprepareView(List<String> treeColumns, List<CCDataTree.DataColumnInfo> dataColumns, String treeColumnTitle) Passes the structure of the tree.voidsetLevelColors(String[] levelColors) Colors for the different hierarchy levels.voidsortByDataColumn(CCDataTree.DataColumnInfo dci, boolean ascending) By default the tree is sorted by the text of the tree columns.Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBean, initializePageBeanConfigItemsMethods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolverMethods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListenerMethods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean
closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, onBeforeRendering, openModalPopup, openModelessPopup, setActualRootExpressionMethods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCDataTree
public CCDataTree()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein classorg.eclnt.jsfserver.pagebean.PageBean
-
getKeyColumns
-
getTreeColumnTitle
-
getDataColumns
-
setLevelColors
Colors for the different hierarchy levels. -
getLevelColors
-
prepareData
Passes the data into the tree processing. The data consists out of a list of items, each item being a map. The content of the map either must be a String value for the tree columns and it must be a BigDecimal for the data columns. -
prepareView
public void prepareView(List<String> treeColumns, List<CCDataTree.DataColumnInfo> dataColumns, String treeColumnTitle) Passes the structure of the tree.- Parameters:
treeColumns- Sequence of columns that make the hierarchy of the tree.dataColumns- Sequence of data columns.treeColumnTitle- The title that is output on top of the tree column.
-
sortByDataColumn
By default the tree is sorted by the text of the tree columns. You may pass some sorting via this method. -
getTree
-
getDynContent
public org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding getDynContent()
-