Interface ISpan<I extends IAnyGroup>

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

public interface ISpan<I extends IAnyGroup> extends IXulElement<ISpan<I>>, IAnyGroup<ISpan<I>>, IChildable<ISpan<I>,I>
Immutable Span component.

The same as HTML SPAN tag. It is one of the most lightweight containers to group child component for, say, assigning CSS or making more sophisticated layout. Span is displayed inline with other siblings; as if there is no line breaks between them.

Author:
jumperchen
See Also:
  • Span
  • Field Details

    • DEFAULT

      static final ISpan DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Span"

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

      static <I extends IAnyGroup> ISpan<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> ISpan<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> ISpan<I> ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component