Interface ISeparatorBase<I extends ISeparatorBase>

All Superinterfaces:
IComponent<I>, IHtmlBasedComponent<I>, IXulElement<I>
All Known Subinterfaces:
ISeparator, ISpace

public interface ISeparatorBase<I extends ISeparatorBase> extends IXulElement<I>
Immutable Separator component
Author:
katherine
  • Method Details

    • getSpacing

      @Nullable String getSpacing()
      Returns the spacing.

      Default: null (depending on CSS).

    • withSpacing

      I withSpacing(@Nullable String spacing)
      Returns a copy of this immutable component with the specified spacing.

      Sets the spacing.

      Parameters:
      spacing - The spacing (such as "0", "5px", "3pt")

      Default: null.

      Returns:
      A modified copy of the this object
    • getOrient

      default String getOrient()
      Returns the orient.

      Default: "horizontal".

    • withOrient

      I withOrient(String orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient.

      Parameters:
      orient - Either "horizontal" or "vertical".

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • withOrient

      default I withOrient(ISeparatorBase.Orient orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient to layout image.

      Parameters:
      orient - the orient to layout image., either "horizontal" or "vertical"

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • isBar

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

      Default: false

    • withBar

      I withBar(boolean bar)
      Returns a copy of this immutable component with the specified bar.

      Sets whether to display a visual bar as the separator.

      Parameters:
      bar - Whether to display a visual bar as the separator..

      Default: false.

      Returns:
      A modified copy of the this object