Class Linelayout

All Implemented Interfaces:
Serializable, Cloneable, Component, Scope, ComponentCtrl

public class Linelayout extends XulElement
A linelayout component for stylistically displaying chronological information.

Only works for browsers supporting CSS flexbox (IE11+, Edge, Chrome, Firefox, Safari).

Default getZclass(): z-linelayout.

Since:
9.0.0
See Also:
  • Constructor Details

    • Linelayout

      public Linelayout()
  • Method Details

    • getOrient

      public String getOrient()
      Returns the orient.

      Default: "vertical".

    • setOrient

      public void setOrient(String orient)
      Sets the orient.
      Parameters:
      orient - either horizontal or vertical
    • getLineStyle

      public String getLineStyle()
      Returns the CSS style for the line.
    • setLineStyle

      public void setLineStyle(String lineStyle)
      Sets the CSS style for the line.
      Parameters:
      lineStyle - the CSS style for the line.
    • getFirstScale

      public int getFirstScale()
      Returns the scale of space occupied by the first area.

      Default: 1.

    • setFirstScale

      public void setFirstScale(int firstScale)
      Sets the scale of space occupied by the first area.
      Parameters:
      firstScale - the scale of space occupied by the first area.
    • getLastScale

      public int getLastScale()
      Returns the scale of space occupied by the last area.

      Default: 1.

    • setLastScale

      public void setLastScale(int lastScale)
      Sets the scale of space occupied by the last area.
      Parameters:
      lastScale - the scale of space occupied by the last area.
    • beforeChildAdded

      public void beforeChildAdded(Component child, Component insertBefore)
      Description copied from class: AbstractComponent
      Default: does nothing.
      Specified by:
      beforeChildAdded in interface ComponentCtrl
      Overrides:
      beforeChildAdded in class AbstractComponent
      Parameters:
      child - the child to be added (never null).
      insertBefore - another child component that the new child will be inserted before it. If null, the new child will be the last child.
      See Also:
    • getLineitemRenderer

      public LineitemRenderer<?> getLineitemRenderer()
      Returns the renderer to render each item, or null if the default renderer is used.
    • setLineitemRenderer

      public void setLineitemRenderer(LineitemRenderer renderer)
      Sets the renderer which is used to render each item if getModel() is not null.
      Parameters:
      renderer - the renderer, or null to use the default.
    • getModel

      public ListModel<?> getModel()
      Returns the model associated with this linelayout, or null if this linelayout is not associated with any list data model.
    • setModel

      public void setModel(ListModel<?> model)
      Sets the list model associated with this linelayout.
      Parameters:
      model - the list model to associate, or null to dissociate any previous model.
    • onInitRender

      public void onInitRender()
      Handles a private event, onInitRender. It is used only for implementation, and you rarely need to invoke it explicitly.
    • 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
    • getZclass

      public String getZclass()
      Description copied from class: HtmlBasedComponent
      Returns the ZK Cascading Style class for this component. It usually depends on the implementation of the mold (AbstractComponent.getMold()).

      Default: null (the default value depends on element).

      HtmlBasedComponent.setZclass(java.lang.String)) will completely replace the default style of a component. In other words, the default style of a component is associated with the default value of HtmlBasedComponent.getZclass(). Once it is changed, the default style won't be applied at all. If you want to perform small adjustments, use HtmlBasedComponent.setSclass(java.lang.String) instead.

      Overrides:
      getZclass in class HtmlBasedComponent
      See Also:
    • getItemRenderer

      public LineitemRenderer<?> getItemRenderer()
      Returns the renderer to render each item, or null if the default renderer is used.
    • setItemRenderer

      public void setItemRenderer(LineitemRenderer<?> renderer)
      Sets the renderer which is used to render each item if getModel() is not null.

      Note: changing a render will cause the linelayout to re-render.

      Parameters:
      renderer - the renderer, or null to use the default.