Interface IFileupload

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

public interface IFileupload extends IButtonBase<IFileupload>, IAnyGroup<IFileupload>
Immutable Fileupload component

A fileupload dialog used to let user upload a file.

Fileupload is actually a button with withUpload("true").

Author:
katherine
See Also:
  • Fileupload
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Fileupload"

      Specified by:
      getWidgetClass in interface IComponent<IFileupload>
    • getUpload

      default String getUpload()
      Description copied from interface: IButtonBase
      Returns non-null if this component is used for file upload, or null otherwise. Refer to IButtonBase.withUpload(java.lang.String) for more details.

      Default: null

      Specified by:
      getUpload in interface IButtonBase<IFileupload>
    • of

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

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

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

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

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