Listgroupfoot

GroupFooter serves as a summary listitem of listgroup.

<?xml version="1.0" encoding="UTF-8"?>
<zk>
    Listbox support Grouping    
    <listbox id="listbox" width="250px">    
        <listhead sizable="true" id="h">        
            <listheader id="h1" label="name" sort="auto" />            
            <listheader id="h2" label="gender" sort="auto" />            
        </listhead>        
        <listgroup id="gp1" open="false">        
            <listcell label="Group1"/>            
            <listcell label="Group2"/>            
        </listgroup>        
        <listitem>        
            <listcell label="a Mary" />            
            <listcell label="a FEMALE" />            
        </listitem>        
        <listitem>        
            <listcell label="b Mary" />            
            <listcell label="b FEMALE" />            
        </listitem>        
        <listitem id="li1">        
            <listcell label="c Mary1" />            
            <listcell label="c FEMALE1" />            
        </listitem>        
        <listitem>        
            <listcell label="d Mary" />            
            <listcell label="d FEMALE" />            
        </listitem>        
        <listitem>        
            <listcell label="e John" />            
            <listcell label="e MALE" />            
        </listitem>        
        <listgroupfoot id="f1">        
            <listcell label="10 emails" />            
            <listcell label="zk1" />            
        </listgroupfoot>        
        <listgroup id="g2" label="Grouping 2" />        
        <listitem>        
            <listcell label="Jane" />            
            <listcell label="FEMALE" />            
        </listitem>        
        <listitem>        
            <listcell label="Henry" />            
            <listcell label="MALE" />            
        </listitem>        

    </listbox>    
</zk>

Class Name

org.zkoss.zul.Listgroupfoot

Supported Child Components

*Listcell

Supported Events

Name

Event Type

Properties

Property

Description

Data Type

Default Value

maxlength

the maximal length of this item's label.

int

index

the index of this item (aka., the order in the listbox).

int

value

The value this cell stored.

Java.lang.Object

label

the width which the same as getListheader()'s width.

String

src

the src of the Listcell it contains, or null if no such cell.

String

image

Returns the image of the Listcell it contains.

String

disable

Is this Listitem is disabled.

boolean

false

sel ected

Is this Listitem is selected.

boolean

false

Methods

Name

Description

Return Data Type

getListbox()

Returns the listbox that contains this column.

org.zkoss.zul.Listbox

getOuterAttrs()

java.lang.String

setParent(org.zkoss.zk.ui.Component parent)

Can only be Listbox

void

Invalidate()

Inherited From