Group

Adds the ability for single level grouping to the Grid.

Default getSclass(): the same as grid's sclass.

<?xml version="1.0" encoding="UTF-8"?>
<zk>
    Grid support Groupfoot in Group    

    <grid id="grid">    
        <columns id="h" sizable="true">        
            <column id="col1" label="Type"/>            
            <column id="col2" label="Content"/>            
        </columns>        
        <rows id="rows">        
            <group id="gp1">            
            <label value="Group1: (gp1)"/>            
            <label value="Group1:"/>            
            </group>            
            <row>            
                <label value="File:"/>                
                <label value="File:"/>                
            </row>            
            <row id="row1">            
                <label value="Type:"/>                
                <hbox>                
                    <listbox rows="1" mold="select">                    
                        <listitem label="Java Files,(*.java)"/>                        
                        <listitem label="All Files,(*.*)"/>                        
                    </listbox>                    
                    <button label="Browse..."/>                    
                </hbox>                
            </row>            
            <groupfoot>            
                <label value="2 Java Files"/>                
                <label value="10 Files"/>                
            </groupfoot>            
            <group id="gp2" label="Group 2 (gp2)" onOpen='alert("Group is open: "+self.open);'/>            
            <row>            
                <label value="Options:"/>                
                <label value="Options:"/>                
            </row>            
                <groupfoot>                
                <label value="2 Options"/>                
                <label value="10 Options"/>                
            </groupfoot>            
        </rows>        
    </grid>    
</zk>

Class Name

org.zkoss.zul.Group

Supported Child Components

*ALL

Supported Events

*NONE

Properties

Property

Description

Data Type

Default Value

align

Sets the horizontal alignment of the whole grid.

Val ue: left|center|right

java.lang.String

<null>

nowrap

Sets the nowrap.

boo lean

false

sclass

Sets the style class.

java.lang.String

<null>

spans

Sets the spans, which is a list of numbers separated by comma.

java.lang.String

<null>

valign

Sets the vertical alignment of the whole row.

java.lang.String

<null>

val ue

Sets the value.

java.lang.Object

<null>

label

Sets the value of the Label it contains

java.lang.String

<null>

Methods

Name

Description

Return Data Type

getChildAttrs(int)

Returns the HTML attributes for the child of the specified index.

java.lang.String

getGrid()

Returns the grid that contains this row.

org.zkoss.zul.Grid

getOuterAttrs()

java.lang.String

onDrawNewChild(org.zkoss.zk.ui.Component, java.lang.StringBuffer)

void

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

void

setStyle(java.lang.String)

void

Inherited From