Package org.zkoss.zul

Class Borderlayout

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Component, Scope, ComponentCtrl

    public class Borderlayout
    extends HtmlBasedComponent
    A border layout is a layout container for arranging and resizing child components to fit in five regions: north, south, east, west, and center. Each region may contain no more than one component, and is identified by a corresponding constant: NORTH, SOUTH, EAST, WEST, and CENTER. When adding a component to a container with a border layout, use one of these five constants, for example:
      <borderlayout>
      <north margins="1,5,1,1" size="20%" splittable="true" collapsible="true" minsize="100" maxsize="400">
      <div>
      North
      </div>
      </north>
      <west size="25%" splittable="true" autoscroll="true">
      <div>
      West
      </div>
      </west>
      <center flex="true">
      <div>
      Center
      </div>
      </center>
      <east size="25%" collapsible="true" onOpen='alert(self.id + " is open :" +event.open)'>
      <div>
      East
      </div>
      </east>
      <south size="50%" splittable="true">
      <div>
      south
      </div>
      </south>
      </borderlayout>
     
     

    Default getZclass(): z-borderlayout. (since 3.5.0)

    Configuration: you can disable the animation effects by specifying a library property named org.zkoss.zul.borderlayout.animation.disabled to disable all borderlayouts. (since 5.0.8)

    Since:
    5.0.0
    Author:
    jumperchen
    See Also:
    Serialized Form