Package com.vaadin.flow.component.upload
Class UploadI18N.Units
java.lang.Object
com.vaadin.flow.component.upload.UploadI18N.Units
- All Implemented Interfaces:
Serializable
- Enclosing class:
UploadI18N
unit translations.
- Since:
- 1.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSize()get units size listGets the units size base.units size list: ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]setSizeBase(Integer sizeBase) Sets the units size base.
-
Constructor Details
-
Units
public Units()unit translations with default size: size = Arrays.asList("B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"); -
Units
- Parameters:
size- list of unit translations
-
Units
- Parameters:
size- list of unit translationssizeBase- units size base- Since:
- 24.5
-
-
Method Details
-
getSize
get units size list- Returns:
- the list of size unit labels
-
setSize
units size list: ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]- Parameters:
size- the list of size unit labels- Returns:
- this instance
-
getSizeBase
Gets the units size base.- Returns:
- the units size base
- Since:
- 24.5
-
setSizeBase
Sets the units size base.- Parameters:
sizeBase- units size base- Returns:
- units
- Since:
- 24.5
-