Class JmixFileStorageUploadField<C extends AbstractSingleUploadField<C,V>,V>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<C,V>
io.jmix.flowui.kit.component.upload.AbstractSingleUploadField<C,V>
io.jmix.flowui.kit.component.upload.JmixFileStorageUploadField<C,V>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasHelper, com.vaadin.flow.component.HasLabel, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>,V>, com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>,V>, com.vaadin.flow.component.shared.HasTooltip, Serializable
Direct Known Subclasses:
FileStorageUploadField

public class JmixFileStorageUploadField<C extends AbstractSingleUploadField<C,V>,V> extends AbstractSingleUploadField<C,V>
See Also:
  • Field Details

    • fileStoragePutMode

      protected FileStoragePutMode fileStoragePutMode
    • fileStorageName

      protected String fileStorageName
  • Constructor Details

    • JmixFileStorageUploadField

      public JmixFileStorageUploadField()
    • JmixFileStorageUploadField

      public JmixFileStorageUploadField(V defaultValue)
  • Method Details

    • getFileStoragePutMode

      public FileStoragePutMode getFileStoragePutMode()
      Returns:
      mode which determines when file will be put into FileStorage
    • setFileStoragePutMode

      public void setFileStoragePutMode(FileStoragePutMode putMode)
      Sets mode which determines when file will be put into FileStorage.
    • getFileStorageName

      public String getFileStorageName()
      Returns:
      the name of FileStorage where the upload file will be placed
    • setFileStorageName

      public void setFileStorageName(String fileStorageName)
      Sets the name of FileStorage where the upload file will be placed. If not set, the default FileStorage will be used.
      Parameters:
      fileStorageName - the name of file storage
    • generateFileName

      protected String generateFileName()
      Specified by:
      generateFileName in class AbstractSingleUploadField<C extends AbstractSingleUploadField<C,V>,V>
    • getDefaultUploadText

      protected String getDefaultUploadText()
      Specified by:
      getDefaultUploadText in class AbstractSingleUploadField<C extends AbstractSingleUploadField<C,V>,V>