Interface IGoldenLayout

    • Field Detail

      • DEFAULT

        static final IGoldenLayout 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.GoldenLayout"

        Specified by:
        getWidgetClass in interface IComponent<IGoldenLayout>
      • getAreas

        @Nullable
        java.lang.String getAreas()
        Return the area of this GoldenPanel.

        Default: null

      • withAreas

        IGoldenLayout withAreas​(@Nullable
                                java.lang.String areas)
        Returns a copy of this immutable component with the specified areas.

        Sets a matrix-like areas template, supports only on initial rendering. Notice that areas is only supported for the initial rendering. (i.e. it won't work with IGoldenLayout.Updater)

        Parameters:
        areas - The template of the goldenlayout.

        Default: null.

        Returns:
        A modified copy of the this object
      • getOrient

        default java.lang.String getOrient()
        Returns the layout dividing orientation.

        Default: "vertical"

      • withOrient

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

        Sets the orient of component

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

        Default: "vertical".

        Returns:
        A modified copy of the this object
      • withOrient

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

        Sets the orient of component

        Parameters:
        orient - The orient

        Default: "vertical".

        Returns:
        A modified copy of the this object
      • ofSize

        static IGoldenLayout ofSize​(java.lang.String width,
                                    java.lang.String height)
        Returns the instance with the given width and height
        Parameters:
        width - The width of the component
        height - The height of the component
      • ofFlex

        static IGoldenLayout ofFlex​(java.lang.String hflex,
                                    java.lang.String vflex)
        Returns the instance with the given vflex and hflex
        Parameters:
        hflex - The horizontal flex hint
        vflex - The vertical flex hint
      • ofId

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