|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zkmax.layout.Portallayout
public class Portallayout
A portal layout lays out a container which can have multiple columns, and each
column may contain one or more panel. Portal layout provides a way to drag-and-drop
panel into other portalchildren from the same portal layout.
Use Portallayout need assign width (either present or pixel) on every
Portalchildren, or we cannot make sure about layout look.
Events:
onPortalMove.
Default Widget.getZclass()
: z-portallayout.
Available in ZK EE
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
String |
getMaximizedMode()
Returns the mode of the maximized panel. |
String |
getOrient()
Returns the orient. |
Panel |
getPanel(int col,
int row)
Returns the specified pnael, or null if not available. |
Array |
getPosition(Panel panel)
Returns an int array[col, row] that indicates the specified panel located within this portal layout. |
boolean |
isVertical()
Returns whether it is a vertical tabbox. |
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(Panel panel,
int col,
int row)
Sets the specified panel via the position(col and row). |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setMaximizedMode(String mode)
Default: "column"
mode
- the mode which could be one of "whole" and "column".public String getMaximizedMode()
Default: "column"
public void setOrient(String orient)
orient
- either "horizontal" or "vertical".public String getOrient()
Default: "vertical".
public 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(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 Array getPosition(Panel panel)
panel
-
public boolean isVertical()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |