Interface ICaption<I extends IAnyGroup>

All Superinterfaces:
IAnyGroup<ICaption<I>>, IChildable<ICaption<I>,I>, IChildrenOfInputgroup<ICaption<I>>, IChildrenOfPanel<ICaption<I>>, IComponent<ICaption<I>>, IHtmlBasedComponent<ICaption<I>>, ILabelElement<ICaption<I>>, ILabelImageElement<ICaption<I>>, IXulElement<ICaption<I>>

public interface ICaption<I extends IAnyGroup> extends ILabelImageElement<ICaption<I>>, IChildrenOfPanel<ICaption<I>>, IChildable<ICaption<I>,I>, IAnyGroup<ICaption<I>>
Immutable Caption component.

A header for a IGroupbox, IWindow, and IPanel. It may contain either a text label, using ILabelElement.withLabel(java.lang.String), or child elements for a more complex caption.

Author:
katherine
See Also:
  • Caption
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Caption"

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

      static <I extends IAnyGroup> ICaption<I> of(String label)
      Returns the instance with the given label
      Parameters:
      label - The label of the caption
    • of

      static <I extends IAnyGroup> ICaption<I> of(String label, String image)
      Returns the instance with the given label and image
      Parameters:
      label - The label of the caption
      image - The image of the caption
    • of

      static <I extends IAnyGroup> ICaption<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> ICaption<I> of(I... children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • ofImage

      static <I extends IAnyGroup> ICaption<I> ofImage(String image)
      Returns the instance with the given image
      Parameters:
      image - The image of the caption
    • ofId

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