com.vaadin.flow.component.upload.
Class UploadI18N
All Implemented Interfaces:
The I18N helper file for the upload component.
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Translations for adding files.
static class
Translations for dropping files.
static class
Exception translations.
static class
file translations.
static class
Abstract translation class for single and multi mode translations.
static class
unit translations.
static class
Upload time translation strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet add files translations.
Get drop translation.
getError()
Get error translations.
getFile()
Get file translations.
getUnits()
Get unit translations.
Get uploading translations.
setAddFiles
(UploadI18N.AddFiles addFiles) Set add files translations.
setDropFiles
(UploadI18N.DropFiles dropFiles) Set drop translation.
setError
(UploadI18N.Error error) Set error translations.
setFile
(UploadI18N.File file) Set file translations.
setUnits
(UploadI18N.Units units) Set unit translations.
Set unit translations.
Set unit translations.
setUploading
(UploadI18N.Uploading uploading) Set uploading translations.
-
Constructor Details
-
UploadI18N
public UploadI18N()
-
-
Method Details
-
getDropFiles
Get drop translation.
Returns:
drop files translations
-
setDropFiles
Set drop translation.
Parameters:
dropFiles
- drop files translationsReturns:
i18n translations
-
getAddFiles
Get add files translations.
Returns:
add files translations
-
setAddFiles
Set add files translations.
Parameters:
addFiles
- add files translationsReturns:
i18n translations
-
getFile
Get file translations.
Returns:
file translations
-
setFile
Set file translations.
Parameters:
file
- file translationsReturns:
i18n translations
-
getError
Get error translations.
Returns:
error translations
-
setError
Set error translations.
Parameters:
error
- error translationsReturns:
i18n translations
-
getUploading
Get uploading translations.
Returns:
uploading translations
-
setUploading
Set uploading translations.
Parameters:
uploading
- uploading translationsReturns:
i18n translations
-
getUnits
Get unit translations.
Returns:
list of unit translations
-
setUnits
Set unit translations.
Parameters:
units
- list of unit translationssizeBase
- units size baseReturns:
i18n translations
-
setUnits
Set unit translations.
Parameters:
units
- list of unit translationsReturns:
i18n translations
-
setUnits
Set unit translations. usage:
UploadI18N i18n=...; i18n.setUnits(new Units(Arrays.asList("B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")));
Parameters:
units
- unit translations object.Returns:
unit translations.
-