public class Portallayout
extends org.zkoss.zul.impl.XulElement
Available in ZK EE
Use Portallayout need assign width (either present or pixel) on every Portalchildren, or we cannot make sure about layout look.
Events:
onPortalMove.
Default getZclass(): z-portallayout.
| Constructor and Description |
|---|
Portallayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild) |
String |
getMaximizedMode()
Returns the mode of the maximized panel.
|
String |
getOrient()
Returns the orient.
|
org.zkoss.zul.Panel |
getPanel(int col,
int row)
Returns the specified panel, or null if not available.
|
int[] |
getPosition(org.zkoss.zul.Panel panel)
Returns an int array[col, row] that indicates the specified panel located
within this portal layout.
|
String |
getZclass() |
boolean |
isVertical()
Returns whether it is a vertical portallayout.
|
void |
onPortalDrop(PortalDropEvent event)
Process the onPortalDrop event sent when the portal drop.
|
void |
onPortalMove(PortalMoveEvent event)
Process the onPortalMove event sent when the portal being moved.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError)
Processes an AU request.
|
void |
setMaximizedMode(String mode)
Sets the mode of the panel to maximize according to "whole" or "column".
|
void |
setOrient(String orient)
Sets the orient.
|
boolean |
setPanel(org.zkoss.zul.Panel panel,
int col,
int row)
Sets the specified panel via the position(col and row).
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic void setOrient(String orient) throws org.zkoss.zk.ui.WrongValueException
orient - either "horizontal" or "vertical".org.zkoss.zk.ui.WrongValueExceptionpublic String getOrient()
Default: vertical
public boolean isVertical()
public org.zkoss.zul.Panel getPanel(int col,
int row)
col - which Portalchildren to fetch (starting at 0).row - which Panel to fetch (starting at 0).public boolean setPanel(org.zkoss.zul.Panel panel,
int col,
int row)
panel - a new panel componentcol - which Portalchildren to fetch (starting at 0).row - which Panel to fetch (starting at 0).public int[] getPosition(org.zkoss.zul.Panel panel)
public void setMaximizedMode(String mode)
Default: "column"
mode - the mode which could be one of "whole" and "column".public String getMaximizedMode()
Default: "column"
public String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic void onPortalDrop(PortalDropEvent event)
Default: move the portal
public void onPortalMove(PortalMoveEvent event)
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic void beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
Default: in addition to what are handled by HtmlBasedComponent.service(org.zkoss.zk.au.AuRequest, boolean),
it also handles onPortalMove.
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2026. All rights reserved.