Package com.vaadin.flow.component.upload
Class UploadFileListI18N.Units
java.lang.Object
com.vaadin.flow.component.upload.UploadFileListI18N.Units
- All Implemented Interfaces:
Serializable
- Enclosing class:
UploadFileListI18N
Unit translations for file sizes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSize()Gets the units size list.Gets the units size base.Sets the units size list.setSizeBase(Integer sizeBase) Sets the units size base.
-
Constructor Details
-
Units
public Units()Creates unit translations with default size units. -
Units
Creates unit translations with the given size units.- Parameters:
size- list of unit translations
-
Units
Creates unit translations with the given size units and base.- Parameters:
size- list of unit translationssizeBase- units size base
-
-
Method Details
-
getSize
Gets the units size list.- Returns:
- list of unit strings
-
setSize
Sets the units size list.- Parameters:
size- list of unit translations- Returns:
- this instance for chaining
-
getSizeBase
Gets the units size base.- Returns:
- the units size base
-
setSizeBase
Sets the units size base.- Parameters:
sizeBase- units size base- Returns:
- this instance for chaining
-