Interface INav

    • Field Detail

      • DEFAULT

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

      • getWidgetClass

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

        Default: "zkmax.nav.Nav"

        Specified by:
        getWidgetClass in interface IComponent<INav>
      • getBadgeText

        @Nullable
        java.lang.String getBadgeText()
        Returns the badge text of the nav

        Default: null

      • withBadgeText

        INav withBadgeText​(@Nullable
                           java.lang.String badgeText)
        Returns a copy of this immutable component with the specified badgeText.

        Sets the badge text of the nav

        Parameters:
        badgeText - The badge text of the nav

        Default: null.

        Returns:
        A modified copy of the this object
      • isOpen

        default boolean isOpen()
        Returns whether this container is open.

        Default: false.

      • withOpen

        INav withOpen​(boolean open)
        Returns a copy of this immutable component with the specified open.

        Sets whether this container is open.

        Parameters:
        open - Whether this container is open.

        Default: false.

        Returns:
        A modified copy of the this object
      • of

        static INav of​(java.lang.String label)
        Returns the instance with the given label.
        Parameters:
        label - The label that the nav holds.
      • ofIconSclass

        static INav ofIconSclass​(java.lang.String iconSclass)
        Returns the instance with the given iconSclass.
        Parameters:
        iconSclass - The iconSclass that the nav holds.
      • ofId

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