Interface ISelectbox

All Superinterfaces:
IAnyGroup<ISelectbox>, IComponent<ISelectbox>, IDisable<ISelectbox>, IHtmlBasedComponent<ISelectbox>

public interface ISelectbox extends IHtmlBasedComponent<ISelectbox>, IDisable<ISelectbox>, IAnyGroup<ISelectbox>
Immutable Selectbox component

Support @Action

Name Action Type
onSelect ActionData: SelectData
Notifies one that the user has selected a new item in the selectbox.
Author:
katherine
See Also:
  • Selectbox
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Selectbox"

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

      @Nullable 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(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

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

      ISelectbox withChildren(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(Iterable<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(Iterable<String> children)
      Returns the instance with the given text children.
      Parameters:
      children - The text children
    • of

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

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