Portallayout

A portallayout lays out a container which can have multiple columns, and each column may contain one or more panel. Portallayout provides a way to drag-and-drop panel into other portalchildren from the same portallayout.

Use Portallayout need assign width (either present or pixel) on every Portalchildren, or we cannot make sure about layout look.

<portallayout>
    <portalchildren width="30%">    
        <panel height="150px" title="Google Tools">        
            <panelchildren>...</panelchildren>            
        </panel>        
        <panel height="300px" title="LabPixies Clock">        
            <panelchildren>...</panelchildren>            
        </panel>        
    </portalchildren>    
    <portalchildren width="30%">    
        <panel height="150px" title="Google Tools">        
            <panelchildren>...</panelchildren>            
        </panel>        
    </portalchildren>    
</portallayout>

Class Name

org.zkoss.zkmax.zul.Portallayout

Supported Child Components

Portalchildren

Supported Events

Name

Event Type

onPortalMove

Event: org.zkoss.zkmax.event.PortalMoveEvent

Represents an event caused by a portal being moved.

Properties

*None

Methods

Name

Description

Return Data Type

getMoldSclass()

String

getPanel(int col, int row)

Returns the specified pnael, or null if not available.

org.zkoss.zul.Panel

getPosition(org.zkoss.zul.Panel panel)

Returns an int array[col, row] that indicates the specified panel located within this portal layout.

int[]

insertBefore(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component insertBefore)

boolean

onChildAdded(org.zkoss.zk.ui.Component child)

void

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

void

setPanel(org.zkoss.zul.Panel panel, int col, int row)

Sets the specified panel via the position(col and row).

boolean

Inherited From