Caption

A header for a Groupbox. It may contain either a text label, using LabelElement.setLabel(java.lang.String), or child elements for a more complex caption.

<zk>
<window border="normal" width="350px">
<caption label="This is a caption"/>
        <groupbox width="300px">        
                 <caption label="fruits"/>                
        <radiogroup onCheck="fruit.value = self.selectedItem.label">        
        <radio label="Apple"/>        
    <radio label="Orange"/>    
    <radio label="Banana"/>     
        </radiogroup>        
        </groupbox>        
</window>
            </zk>            

Class Name

org.zkoss.zul.Caption

Supported Child Components

*ALL

Supported Events

Name

Event Type

onClick

org.zkoss.zk.ui.event.MouseEvent

Description: Denotes user has clicked the component.

onRightClick

org.zkoss.zk.ui.event.MouseEvent

Description: Denotes user has right-clicked the component.

onDoubleClick

org.zkoss.zk.ui.event.MouseEvent

Description: Denotes user has double-clicked the component.

Properties

*NONE

Methods

Name

Description

Return Data Type

getCompoundLabel()

Returns a compound label, which is the catenation of parent's title, if the parent is Window, and LabelElement.getLabel().

java.lang.String

getOuterAttrs()

java.lang.String

getSclass()

Returns the style class.

java.lang.String

invalidate()

void

isClosableVisible()

Returns whether to display the closable button.

boo lean

isLegend()

Returns whether the legend mold shall be used.

boo lean

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

void

Inherited From