Class Linelayout

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • Linelayout

        public Linelayout()
    • Method Detail

      • getOrient

        public java.lang.String getOrient()
        Returns the orient.

        Default: "vertical".

      • setOrient

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

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

        public void setLineStyle​(java.lang.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.
      • 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.
      • 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.