Class UploadFileListI18N.Units

java.lang.Object
com.vaadin.flow.component.upload.UploadFileListI18N.Units
All Implemented Interfaces:
Serializable
Enclosing class:
UploadFileListI18N

public static class UploadFileListI18N.Units extends Object implements Serializable
Unit translations for file sizes.
See Also:
  • Constructor Details

    • Units

      public Units()
      Creates unit translations with default size units.
    • Units

      public Units(List<String> size)
      Creates unit translations with the given size units.
      Parameters:
      size - list of unit translations
    • Units

      public Units(List<String> size, Integer sizeBase)
      Creates unit translations with the given size units and base.
      Parameters:
      size - list of unit translations
      sizeBase - units size base
  • Method Details

    • getSize

      public List<String> getSize()
      Gets the units size list.
      Returns:
      list of unit strings
    • setSize

      public UploadFileListI18N.Units setSize(List<String> size)
      Sets the units size list.
      Parameters:
      size - list of unit translations
      Returns:
      this instance for chaining
    • getSizeBase

      public Integer getSizeBase()
      Gets the units size base.
      Returns:
      the units size base
    • setSizeBase

      public UploadFileListI18N.Units setSizeBase(Integer sizeBase)
      Sets the units size base.
      Parameters:
      sizeBase - units size base
      Returns:
      this instance for chaining