Interface ICombobutton

All Superinterfaces:
IAnyGroup<ICombobutton>, IButtonBase<ICombobutton>, IChildrenOfInputgroup<ICombobutton>, IComponent<ICombobutton>, IHtmlBasedComponent<ICombobutton>, ILabelElement<ICombobutton>, ILabelImageElement<ICombobutton>, ISingleChildable<ICombobutton,IPopupBase>, IXulElement<ICombobutton>

Immutable Combobutton component

A Combobutton is a special Button that embeds a popup or menupopup child.

Support @Action

Name Action Type
onOpen ActionData: OpenData
Denotes when the child popup is opened or closed.
Author:
katherine
See Also:
  • Combobutton
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Combobutton"

      Specified by:
      getWidgetClass in interface IComponent<ICombobutton>
    • isAutodrop

      default boolean isAutodrop()
      Returns whether to automatically drop the popup if user hovers on this Combobutton.

      Default: false.

    • withAutodrop

      ICombobutton withAutodrop(boolean autodrop)
      Returns a copy of this immutable component with the specified autodrop.

      Sets whether to automatically drop the popup if user hovers on this Combobutton.

      Parameters:
      autodrop - Whether to automatically drop the popup if user hovers on this Combobutton.

      Default: false.

      Returns:
      A modified copy of the this object
    • of

      static <I extends IPopupBase> ICombobutton of(String label, I popup)
      Returns the instance with the given label and popup.
      Parameters:
      label - The label that the component
      popup - The popup of the component
    • of

      static <I extends IPopupBase> ICombobutton of(I iPopup)
      Returns the instance with the given popup * @param popup The popup of the component
    • of

      static ICombobutton of(String label)
      Returns the instance with the given label.
      Parameters:
      label - The label that the component
    • of

      static ICombobutton of(String label, String image)
      Returns the instance with the given label and image.
      Parameters:
      label - The label that the button holds.
      image - The image that the button holds.
    • ofImage

      static ICombobutton ofImage(String image)
      Returns the instance with the given image.
      Parameters:
      image - The image that the button holds.
    • ofOrient

      static ICombobutton ofOrient(IButtonBase.Orient orient)
      Returns the instance with the given orient.
      Parameters:
      orient - The button orient
    • ofType

      static ICombobutton ofType(IButtonBase.Type type)
      Returns the instance with the given type.
      Parameters:
      type - The button type
    • ofDir

      static ICombobutton ofDir(IButtonBase.Direction dir)
      Returns the instance with the given dir.
      Parameters:
      dir - The button dir
    • ofId

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