Interface IDiv<I extends IAnyGroup>

All Superinterfaces:
IAnyGroup<IDiv<I>>, IChildable<IDiv<I>,I>, IComponent<IDiv<I>>, IHtmlBasedComponent<IDiv<I>>, IXulElement<IDiv<I>>

public interface IDiv<I extends IAnyGroup> extends IXulElement<IDiv<I>>, IAnyGroup<IDiv<I>>, IChildable<IDiv<I>,I>
Immutable Div component.

The same as HTML DIV tag. It is one of the most lightweight containers to group child component for, say, assigning CSS or making more sophisticated layout. Div is displayed as block that the following sibling won't be displayed in the same vertical position; as if there is a line break before and after it.

Author:
katherine
See Also:
  • Div
  • Field Details

    • DEFAULT

      static final IDiv<IAnyGroup> DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Div"

      Specified by:
      getWidgetClass in interface IComponent<I extends IAnyGroup>
    • of

      static <I extends IAnyGroup> IDiv<I> of(Iterable<? extends I> children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • of

      static <I extends IAnyGroup> IDiv<I> of(I... children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • ofId

      static <I extends IAnyGroup> IDiv<I> ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component
    • ofSize

      static <I extends IAnyGroup> IDiv<I> ofSize(String width, String height)
      Returns the instance with the given size, width and height.
      Parameters:
      width - The width of the component
      height - The height of the component