| org.zkoss.zul.impl.XulElement org.zkoss.zkex.zul.LayoutRegion
All known Subclasses: org.zkoss.zkex.zul.West, org.zkoss.zkex.zul.East, org.zkoss.zkex.zul.South, org.zkoss.zkex.zul.North, org.zkoss.zkex.zul.Center,
LayoutRegion | abstract public class LayoutRegion extends XulElement (Code) | | This class represents a region in a layout manager.
Events: onOpen, onSize.
The default class of CSS is specified "layout-region" and
"layout-region-normal". If the border specifies "none" or null or "0", the
"layout-region-normal" class will remove.
author: jumperchen since: 3.0.0 |
Method Summary | |
protected void | addSclass(String cls) | public String | getBorder() Returns the border. | public String | getMargins() Returns the margins, which is a list of numbers separated by comma. | public int | getMaxsize() Returns the maximum size of the resizing element. | public int | getMinsize() Returns the minimum size of the resizing element. | public String | getOuterAttrs() | abstract public String | getPosition() Returns this regions position (north/south/east/west/center). | abstract public String | getSize() Returns the size of this region. | protected boolean | hasSclass(String cls) | public boolean | insertBefore(Component child, Component insertBefore) | public boolean | isAutoscroll() Returns whether enable overflow scrolling. | public boolean | isCollapsible() Returns whether set the initial display to collapse. | final public boolean | isFlex() Returns whether to grow and shrink vertical/horizontal to fit their given
space, so called flexibility. | public boolean | isOpen() Returns whether it is opne (i.e., not collapsed. | public boolean | isSplittable() Returns whether enable the split functionality. | protected Object | newExtraCtrl() | public void | onChildRemoved(Component child) | protected void | removeSclass(String cls) | public void | setAutoscroll(boolean autoscroll) Sets whether enable overflow scrolling. | public void | setBorder(String border) Sets the border (either none or normal).
Parameters: border - the border. | public void | setCollapsible(boolean collapsible) Sets whether set the initial display to collapse. | public void | setFlex(boolean flex) Sets whether to grow and shrink vertical/horizontal to fit their given
space, so called flexibility. | public void | setMargins(String margins) | public void | setMaxsize(int maxsize) Sets the maximum size of the resizing element. | public void | setMinsize(int minsize) Sets the minimum size of the resizing element. | public void | setOpen(boolean open) Opens or collapses the splitter. | abstract public void | setSize(String size) Sets the size of this region. | public void | setSplittable(boolean splittable) Sets whether enable the split functionality. |
LayoutRegion | public LayoutRegion()(Code) | | |
getBorder | public String getBorder()(Code) | | Returns the border.
The border actually controls what CSS class to use: If border is null, it
implies "none".
If you also specify the CSS class (
LayoutRegion.setClass ), it overwrites
whatever border you specify here.
Default: "normal".
|
getMargins | public String getMargins()(Code) | | Returns the margins, which is a list of numbers separated by comma.
Default: "0,0,0,0".
|
getMaxsize | public int getMaxsize()(Code) | | Returns the maximum size of the resizing element.
Default: 2000.
|
getMinsize | public int getMinsize()(Code) | | Returns the minimum size of the resizing element.
Default: 0.
|
isAutoscroll | public boolean isAutoscroll()(Code) | | Returns whether enable overflow scrolling.
Default: false.
|
isCollapsible | public boolean isCollapsible()(Code) | | Returns whether set the initial display to collapse.
Default: false.
|
isFlex | final public boolean isFlex()(Code) | | Returns whether to grow and shrink vertical/horizontal to fit their given
space, so called flexibility.
Default: false.
|
isSplittable | public boolean isSplittable()(Code) | | Returns whether enable the split functionality.
Default: false.
|
setAutoscroll | public void setAutoscroll(boolean autoscroll)(Code) | | Sets whether enable overflow scrolling.
|
setBorder | public void setBorder(String border)(Code) | | Sets the border (either none or normal).
Parameters: border - the border. If null or "0", "none" is assumed. |
setCollapsible | public void setCollapsible(boolean collapsible)(Code) | | Sets whether set the initial display to collapse.
|
setFlex | public void setFlex(boolean flex)(Code) | | Sets whether to grow and shrink vertical/horizontal to fit their given
space, so called flexibility.
|
setMargins | public void setMargins(String margins)(Code) | | Sets margins for the element "0,1,2,3" that direction is
"top,left,right,bottom"
|
setMaxsize | public void setMaxsize(int maxsize)(Code) | | Sets the maximum size of the resizing element.
|
setMinsize | public void setMinsize(int minsize)(Code) | | Sets the minimum size of the resizing element.
|
setSplittable | public void setSplittable(boolean splittable)(Code) | | Sets whether enable the split functionality.
|
|
|