Interface IPortalchildren

    • Field Detail

      • DEFAULT

        static final IPortalchildren DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zkmax.layout.Portalchildren"

        Specified by:
        getWidgetClass in interface IComponent<IPortalchildren>
      • getTitle

        @Nullable
        java.lang.String getTitle()
        Returns the title of this portalchildren. null means no title.

        Default: null.

      • withTitle

        IPortalchildren withTitle​(@Nullable
                                  java.lang.String title)
        Returns a copy of this immutable component with the specified title.

        Sets the title of this portalchildren. null means no title.

        Parameters:
        title - The title of the component.

        Default: null.

        Returns:
        A modified copy of the this object
      • isCounterVisible

        default boolean isCounterVisible()
        Returns whether the counter is visible. Meaningful only if getTitle() is not null or not empty.

        Default: true.

      • withCounterVisible

        IPortalchildren withCounterVisible​(boolean counterVisible)
        Returns a copy of this immutable component with the specified counterVisible.

        Sets whether the counter is visible. Meaningful only if getTitle() is not null or not empty.

        Parameters:
        counterVisible - The title of the component.

        Default: true.

        Returns:
        A modified copy of the this object
      • of

        static IPortalchildren of​(java.lang.Iterable<? extends IPanel> children)
        Returns the instance with the given IPanel children.
        Parameters:
        children - The children of IPanel
      • ofSize

        static IPortalchildren ofSize​(java.lang.String width,
                                      java.lang.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
      • ofId

        static IPortalchildren ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component