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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
    Default implementation of listener.
    static enum 
    Different ways to calculate the data columns.
    static interface 
    Listener that tells about events within the tree/grid processing.
    class 
     

    Nested 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding
     
     
     
     
    org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCDataTree.TreeNode>
     
     
    void
    Passes the data into the tree processing.
    void
    prepareView(List<String> treeColumns, List<CCDataTree.DataColumnInfo> dataColumns, String treeColumnTitle)
    Passes the structure of the tree.
    void
    setLevelColors(String[] levelColors)
    Colors for the different hierarchy levels.
    void
    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, initializePageBeanConfigItems

    Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase

    addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolver

    Methods inherited from class org.eclnt.jsfserver.pagebean.PageBean

    buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpression

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout

    addConfiguredByLayoutListener, removeConfiguredByLayoutListener

    Methods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean

    closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, onBeforeRendering, openModalPopup, openModelessPopup, setActualRootExpression

    Methods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent

    initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
  • Constructor Details

    • CCDataTree

      public CCDataTree()
  • Method Details

    • getRootExpressionUsedInPage

      public String getRootExpressionUsedInPage()
      Specified by:
      getRootExpressionUsedInPage in interface org.eclnt.jsfserver.pagebean.IPageBean
      Specified by:
      getRootExpressionUsedInPage in class org.eclnt.jsfserver.pagebean.PageBean
    • getKeyColumns

      public List<String> getKeyColumns()
    • getTreeColumnTitle

      public String getTreeColumnTitle()
    • getDataColumns

      public List<CCDataTree.DataColumnInfo> getDataColumns()
    • setLevelColors

      public void setLevelColors(String[] levelColors)
      Colors for the different hierarchy levels.
    • getLevelColors

      public String[] getLevelColors()
    • prepareData

      public void prepareData(List<Map<String,Object>> data, CCDataTree.IListener listener)
      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

      public void sortByDataColumn(CCDataTree.DataColumnInfo dci, boolean ascending)
      By default the tree is sorted by the text of the tree columns. You may pass some sorting via this method.
    • getTree

      public org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCDataTree.TreeNode> getTree()
    • getDynContent

      public org.eclnt.jsfserver.elements.impl.ROWDYNAMICCONTENTBinding getDynContent()