Treefooter

A treefooter is a bottom column of tree, Its parent must be Treefoot. You colud place any child in a tree footer.

<window title="tree demo" border="normal" width="400px">
    <tree id="tree" width="90%" rows="2">    
        <treecols sizable="true">        
            <treecol label="Name"/>            
            <treecol label="Description"/>            
        </treecols>        
        <treechildren>        
            <treeitem>            
                <treerow>                
                    <treecell label="Item 1"/>                    
                    <treecell label="Item 1 description"/>                    
                </treerow>                
            <treechildren>            
                <treeitem>                
                    <treerow>                    
                        <treecell label="Item 1.2"/>                        
                        <treecell label="Item 1.2 description"/>                        
                    </treerow>                    
                </treeitem>                
            </treechildren>            
            </treeitem>            
        </treechildren>        
        <treefoot >        
            <treefooter><image src="/img/folder.gif"/>Count</treefooter>            
            <treefooter><image src="/img/folder.gif"/>Summary</treefooter>            
        </treefoot>        
    </tree>    
</window>

Class Name

org.zkoss.zul.Treefooter

Supported Child Components

*ALL

Supported Events

*NONE

Properties

Property

Description

Data Type

Default Value

span

Sets the number of columns to span this footer.

int

1

Methods

Name

Description

Data Type

Values

getColumnIndex

Returns the column index, starting from 0.

int

getTree

Returns the tree that this belongs to.

Tree

getTreecol

Returns the tree header that is in the same column as this footer, or null if not available.

Treecol

Inherited From