Listcell

A list cell.

<window title="listbox demo" border="normal">
        <listbox id="box" width="250px">        
            <listhead sizable="true">            
                <listheader label="name" sort="auto"/>                
                <listheader label="gender" sort="auto"/>                
            </listhead>            
            <listitem>            
                <listcell label="Mary"/>                
                <listcell label="FEMALE"/>                
            </listitem>            
            <listitem>            
                <listcell label="John"/>                
                <listcell label="MALE"/>                
            </listitem>            
            <listitem>            
                <listcell label="Jane"/>                
                <listcell label="FEMALE"/>                
            </listitem>            
            <listitem>            
                <listcell label="Henry"/>                
                <listcell label="MALE"/>                
            </listitem>            
            <listfoot >            
                <listfooter><label value="This is footer1"/></listfooter>                
                <listfooter><label value="This is footer2"/></listfooter>                
            </listfoot>            
                </listbox>                
</window>

Class Name

org.zkoss.zul.Listcell

Supported Child Components

*ALL

Supported Events

*NONE

Properties

Name

Description

Return Data Type

span

Number of columns to span this footer.

int

value

The value this cell stored.

java.lang.Object

width

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

String

Methods

Name

Description

Return Data Type

getListbox()

Returns the listbox that contains this column.

org.zkoss.zul.Listbox

getColumnHtmlPostfix()

java.lang.String

getColumnHtmlPrefix()

java.lang.String

getOuterAttrs()

java.lang.String

getColumnIndex()

Returns the column index, starting from 0.

int

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

Can only be Listhead

void

getListheader()

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

org.zkoss.zul.ListHeader

Invalidate()

Inherited From