Interface IButton

All Superinterfaces:
IAnyGroup<IButton>, IButtonBase<IButton>, IChildrenOfInputgroup<IButton>, IComponent<IButton>, IHtmlBasedComponent<IButton>, ILabelElement<IButton>, ILabelImageElement<IButton>, IXulElement<IButton>

public interface IButton extends IButtonBase<IButton>, IAnyGroup<IButton>
Immutable Button component

You could assign a label and an image to a button by the label and image attributes. If both are specified, the dir attribute control which is displayed up front, and the orient attribute controls whether the layout is horizontal or vertical.

Support @Action

Name Action Type
onFocus Denotes when a component gets the focus.
onBlur Denotes when a component loses the focus.
onUpload ActionData: FileData
Denotes user has uploaded a file to the component.
Author:
katherine
See Also:
  • Button
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Button"

      Specified by:
      getWidgetClass in interface IComponent<IButton>
    • of

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

      static IButton 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 IButton ofImage(String image)
      Returns the instance with the given image.
      Parameters:
      image - The image that the button holds.
    • ofOrient

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

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

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

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