Interface ILayout<I extends ILayout>

All Superinterfaces:
IComponent<I>, IHtmlBasedComponent<I>, IXulElement<I>
All Known Subinterfaces:
IHlayout<I>, IVlayout<I>

public interface ILayout<I extends ILayout> extends IXulElement<I>
Immutable Layout interface.
Author:
katherine
  • Method Details

    • getSpacing

      @Nullable default 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).

    • withSpacing

      I withSpacing(@Nullable String spacing)
      Returns a copy of this immutable component with the specified 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.

      Default: "0.3em".

      Returns:
      A modified copy of the this object