public class GoldenLayout
extends org.zkoss.zul.impl.XulElement
GoldenPanel is the only child that could be added to.| Modifier and Type | Field and Description |
|---|---|
static String |
REGION_EAST |
static String |
REGION_NORTH |
static String |
REGION_SOUTH |
static String |
REGION_STACK |
static String |
REGION_WEST |
static String |
TARGET_ROOT |
| Constructor and Description |
|---|
GoldenLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPanel(GoldenPanel goldenPanel,
GoldenPanel targetGoldenPanel,
String region)
Adds an GoldenPanel to the region of the specified area GoldenPanel.
|
void |
addPanel(GoldenPanel goldenPanel,
int col,
int row,
String region)
Adds an GoldenPanel to the region of the GoldenPanel at the specified location.
|
void |
addPanel(GoldenPanel goldenPanel,
String area,
String region)
Adds an GoldenPanel to the region of the specified area GoldenPanel.
|
void |
addPanelToRoot(GoldenPanel goldenPanel,
String region)
Adds an GoldenPanel to the region of the GoldenLayout.
|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild) |
void |
deletePanels(String area)
Deletes the GoldenPanels of this name.
|
String |
getAreas()
Gets the current areas template as String.
|
protected List<List<String>> |
getAreasMatrix() |
Set<String> |
getAreasNames() |
Integer |
getColumnsSize() |
String |
getOrient() |
protected GoldenPanel |
getPanel(int col,
int row) |
protected GoldenPanel |
getPanel(String area) |
List<GoldenPanel> |
getPanels(int col,
int row)
Get the panels on the specified location.
|
List<GoldenPanel> |
getPanels(String area)
Get the GoldenPanels of the specified area name.
|
Integer |
getRowsSize() |
boolean |
insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
void |
movePanel(GoldenPanel goldenPanel,
GoldenPanel targetGoldenPanel,
String region)
Moves an existing goldenpanel child of this goldenlayout to a specific region of an area.
|
void |
movePanel(GoldenPanel goldenPanel,
int col,
int row,
String region)
Moves an existing goldenpanel child of this goldenlayout to a specific location by col and row indexes.
|
void |
movePanel(GoldenPanel goldenPanel,
String area,
String region)
Moves an existing goldenpanel child of this goldenlayout to a specific region of an area.
|
void |
movePanelToRoot(GoldenPanel goldenPanel,
String region)
Moves an GoldenPanel to the region of the GoldenLayout.
|
void |
onChildAdded(org.zkoss.zk.ui.Component child) |
void |
onCreate(org.zkoss.zk.ui.event.Event evt)
Internal use only
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError) |
void |
setAreas(String areas)
Sets a matrix-like areas template, supports only on initial rendering.
|
void |
setOrient(String orient)
Sets the initial dividing orientation.
|
protected String |
updateInitialMatrix(GoldenPanel dropTarget,
String region,
String area) |
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, getZclass, 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, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, 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 static final String REGION_NORTH
public static final String REGION_SOUTH
public static final String REGION_EAST
public static final String REGION_WEST
public static final String REGION_STACK
public static final String TARGET_ROOT
public String getAreas()
public void setAreas(String areas)
areas - the template of the goldenlayout.public String getOrient()
public void setOrient(String orient)
orient - "vertical" or "horizontal"public Integer getColumnsSize()
public Integer getRowsSize()
public List<GoldenPanel> getPanels(int col, int row)
col - the index of column of areasrow - the index of row of areaspublic List<GoldenPanel> getPanels(String area)
area - of the GoldenPanelsprotected GoldenPanel getPanel(int col, int row)
protected GoldenPanel getPanel(String area)
public void deletePanels(String area)
area - of the panels to delete.public void addPanel(GoldenPanel goldenPanel, int col, int row, String region)
goldenPanel - the GoldenPanel that will be added.col - the index of column of areasrow - the index of row of areasregion - north, south, east, west, stackpublic void addPanel(GoldenPanel goldenPanel, String area, String region)
goldenPanel - the GoldenPanel that will be added.area - the area name that will be moved to.region - north, south, east, west, stackpublic void addPanel(GoldenPanel goldenPanel, GoldenPanel targetGoldenPanel, String region)
goldenPanel - the GoldenPanel that will be added.targetGoldenPanel - the target GoldenPanel to be dropped to.region - north, south, east, west, stackpublic void addPanelToRoot(GoldenPanel goldenPanel, String region)
goldenPanel - the GoldenPanel that will be added.region - north, south, east, westpublic void movePanel(GoldenPanel goldenPanel, int col, int row, String region)
goldenPanel - the GoldenPanel that will be moved.col - the col index of the location.row - the row index of the location.region - north, south, east, west, stackpublic void movePanel(GoldenPanel goldenPanel, String area, String region)
goldenPanel - the GoldenPanel that will be moved.area - the area name that will be moved to.region - north, south, east, west, stackpublic void movePanel(GoldenPanel goldenPanel, GoldenPanel targetGoldenPanel, String region)
goldenPanel - the GoldenPanel that will be moved.targetGoldenPanel - the target GoldenPanel to be dropped to.region - north, south, east, west, stackpublic void movePanelToRoot(GoldenPanel goldenPanel, String region)
goldenPanel - region - public 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 onChildAdded(org.zkoss.zk.ui.Component child)
onChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlonChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic boolean insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic void onCreate(org.zkoss.zk.ui.event.Event evt)
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentprotected String updateInitialMatrix(GoldenPanel dropTarget, String region, String area)
Copyright © 2026. All rights reserved.