Package org.zkoss.zul

Class Separator

    • Constructor Detail

      • Separator

        public Separator()
      • Separator

        public Separator​(java.lang.String orient)
        Parameters:
        orient - either "horizontal" or "vertical".
    • Method Detail

      • getOrient

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

        Default: "horizontal".

      • setOrient

        public void setOrient​(java.lang.String orient)
                       throws WrongValueException
        Sets the orient.
        Parameters:
        orient - either "horizontal" or "vertical".
        Throws:
        WrongValueException
      • isHorizontal

        public boolean isHorizontal()
        Returns whether it is a horizontal separator.
        Since:
        3.0.4
      • isVertical

        public boolean isVertical()
        Returns whether it is a vertical separator.
        Since:
        3.0.4
      • isBar

        public boolean isBar()
        Returns whether to display a visual bar as the separator.

        Default: false

      • setBar

        public void setBar​(boolean bar)
        Sets whether to display a visual bar as the separator.
      • getSpacing

        public java.lang.String getSpacing()
        Returns the spacing.

        Default: null (depending on CSS).

      • setSpacing

        public void setSpacing​(java.lang.String spacing)
        Sets the spacing.
        Parameters:
        spacing - the spacing (such as "0", "5px", "3pt")