Interface ISelectbox

    • Field Detail

      • DEFAULT

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

      • getWidgetClass

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

        Default: "zul.wgt.Selectbox"

        Specified by:
        getWidgetClass in interface IComponent<ISelectbox>
        Returns:
      • getName

        @Nullable
        java.lang.String getName()
        Returns the name of this component.

        Default: null.

        The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.

        Don't use this method if your application is purely based on ZK's event-driven model.

      • withName

        ISelectbox withName​(java.lang.String name)
        Returns a copy of this immutable component with the specified name.

        Sets the name of this component.

        Parameters:
        name - The name of this component.

        Default: null.

        Returns:
        A modified copy of the this object
      • getChildren

        java.util.List<java.lang.String> getChildren()
        Returns the children of this component.
      • withChildren

        ISelectbox withChildren​(java.lang.String... children)
        Returns a copy of this immutable component with the specified children.

        Sets the text children.

        Parameters:
        children - Text children.

        Default: empty.

        Returns:
        A modified copy of the this object
      • withChildren

        ISelectbox withChildren​(java.lang.Iterable<java.lang.String> children)
        Returns a copy of this immutable component with the specified children.

        Sets the text children.

        Parameters:
        children - A list of text child.

        Default: empty.

        Returns:
        A modified copy of the this object
      • isMultiple

        default boolean isMultiple()
        Returns whether multiple selections are allowed.

        Default: false.

      • withMultiple

        ISelectbox withMultiple​(boolean multiple)
        Returns a copy of this immutable component with the specified multiple.

        Sets whether multiple selections are allowed.

        Parameters:
        multiple - Whether multiple selections are allowed.

        Default: false.

        Returns:
        A modified copy of the this object
      • getMaxlength

        default int getMaxlength()
        Returns the maximal length of each item's label.
      • withMaxlength

        ISelectbox withMaxlength​(int maxlength)
        Returns a copy of this immutable component with the specified maxlength.

        Sets the maximal length of each item's label.

        Parameters:
        maxlength - The maximal length of each item's label.

        Default: 0.

        Returns:
        A modified copy of the this object
      • of

        static ISelectbox of​(java.lang.Iterable<java.lang.String> children)
        Returns the instance with the given text children.
        Parameters:
        children - The text children
      • of

        static ISelectbox of​(java.lang.String... children)
        Returns the instance with the given text children.
        Parameters:
        children - The text children
      • ofId

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