Groupbox

Components: groupbox.

A group box is used to group components together. A border is typically drawn around the components to show that they are related. The label across the top of the group box can be created by using the caption component. It works much like the HTML legend element. Unlike windows, a group box is not an owner of the ID space. It cannot be overlapped or popup.

<groupbox width="250px">
    <caption label="Fruits"/>    
    <radiogroup>    
        <radio label="Apple"/>        
        <radio label="Orange"/>        
        <radio label="Banana"/>        
    </radiogroup>    
</groupbox>

Class Name

org.zkoss.zul.Groupbox

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.

onOpen

org.zkoss.zk.ui.event.OpenEvent

Description: Denotes user has opened or closed a component. Note:

unlike onClose, this event is only a notification. The client sends this event after opening or closing the component.

It is useful to implement load-on-demand by listening to the onOpen event, and creating components when the first time the component is opened.

Properties

Property

Description

Data Type

Default Value

closable

Sets whether user can open or close the group box.

boo lean

true

con tentStyle

Sets the CSS style for the content block of the groupbox.

java.lang.Str ing

<null>

ope n

Opens or closes this groupbox.

boo lean

true

Methods

Name

Description

Return Data Type

getCaption()

Returns the caption of this groupbox.

org.zkoss.zul.Caption

get ContentSclass()

Returns the style class used for the content block of the groupbox.

jav a.lang.String

get OuterAttrs()

jav a.lang.String

ins ertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)

boo lean

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

void

Inherited From