Interface INavbar

    • Field Detail

      • DEFAULT

        static final INavbar 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.Navbar"

        Specified by:
        getWidgetClass in interface IComponent<INavbar>
      • getOrient

        default java.lang.String getOrient()
        Returns the orient.

        Default: "horizontal".

      • withOrient

        INavbar withOrient​(java.lang.String orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient.

        Parameters:
        orient - Either "horizontal" or "vertical"

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • withOrient

        default INavbar withOrient​(INavbar.Orient orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient.

        Parameters:
        orient - Either "horizontal" or "vertical"

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • isCollapsed

        default boolean isCollapsed()
        Returns whether it is collapsed. Default: false.
      • withCollapsed

        INavbar withCollapsed​(boolean collapsed)
        Returns a copy of this immutable component with the specified collapsed.

        Sets whether to collapse it.

        Parameters:
        collapsed - Whether to collapse it.

        Default: false.

        Returns:
        A modified copy of the this object
      • isAutoclose

        default boolean isAutoclose()
        Returns whether to automatically close all other nav/navitem on opening nav/navitem.

        Default: true.

      • withAutoclose

        INavbar withAutoclose​(boolean autoclose)
        Returns a copy of this immutable component with the specified autoclose.

        Sets whether to automatically close all other nav/navitem on opening nav/navitem.

        Parameters:
        autoclose - Whether to automatically close all other nav/navitem on opening nav/navitem.

        Default: true.

        Returns:
        A modified copy of the this object
      • ofId

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