Package org.zkoss.zul

Class Layout

All Implemented Interfaces:
Serializable, Cloneable, Component, Scope, ComponentCtrl
Direct Known Subclasses:
Hlayout, Vlayout

public class Layout extends XulElement
A layout.
Since:
5.0.8
Author:
tomyeh
See Also:
  • Constructor Details

    • Layout

      public Layout()
  • Method Details

    • getSpacing

      public String getSpacing()
      Returns the spacing between adjacent children, or null if the default spacing is used.

      Default: 0.3em (means to use the default spacing).

    • setSpacing

      public void setSpacing(String spacing)
      Sets the spacing between adjacent children.
      Parameters:
      spacing - the spacing (such as "0", "5px", "3pt" or "1em"). If the spacing is set to "auto", null, or empty (""), the DOM style is left intact, so the spacing can be customized from CSS.
      See Also:
    • renderProperties

      protected void renderProperties(ContentRenderer renderer) throws IOException
      Description copied from class: HtmlBasedComponent
      Renders the content of this component, excluding the enclosing tags and children.

      See also ZK Client-side Reference: Property Rendering

      Overrides:
      renderProperties in class XulElement
      Throws:
      IOException