Interface FileMultiUploadField

All Superinterfaces:
Component, Component.BelongToFrame, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, UploadField
All Known Implementing Classes:
FileMultiUploadFieldImpl

@StudioComponent(xmlElement="fileMultiUpload", category="Components", icon="io/jmix/ui/icon/component/fileMultiUpload.svg", documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/file-multi-upload-field.html", canvasBehaviour=BUTTON, canvasText="Upload", canvasTextProperty="caption") public interface FileMultiUploadField extends UploadField
Component for uploading files from client to server that supports multiple file selection.
  • Field Details

  • Method Details

    • getUploadsMap

      Map<UUID,String> getUploadsMap()
      Get uploads map
      Returns:
      Map ( UUID - Id of file in Temporary storage, String - FileName )
    • clearUploads

      void clearUploads()
      Clear uploads list
    • addQueueUploadCompleteListener

      Subscription addQueueUploadCompleteListener(Consumer<FileMultiUploadField.QueueUploadCompleteEvent> listener)
      Adds queue upload complete listener. It is invoked when all selected files are uploaded to the temporary storage.
      Parameters:
      listener - a listener to add
      Returns:
      a registration object for removing an event listener
    • setTotalProgressEnabled

      @StudioProperty(type=BOOLEAN, defaultValue="true") void setTotalProgressEnabled(boolean totalProgressEnabled)
      Sets whether total progress should be displayed during files loading
      Parameters:
      totalProgressEnabled - flag indicating whether total progress should be displayed
    • isTotalProgressEnabled

      boolean isTotalProgressEnabled()
      Returns:
      true if total progress should be displayed, false otherwise
    • setTotalProgressFormat

      @StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///multiupload.totalProgressFormat") void setTotalProgressFormat(String totalProgressFormat)
      Sets caption format that will be used in total progress display section. Two '%s' placeholders are supported in the format - the first is for current file number, the second is for total file number.
      Examples: "File %s of %s", "%s of %s" etc.
      Parameters:
      totalProgressFormat - caption format which will be used in total progress display section
    • getTotalProgressFormat

      String getTotalProgressFormat()
      Returns:
      caption format which is used in total progress display section.
      See Also: