com.vaadin.flow.component.upload.
Class UploadI18N
- java.lang.Object
-
- com.vaadin.flow.component.upload.UploadI18N
-
All Implemented Interfaces:
public class UploadI18N extends Object implements Serializable
The I18N helper file for the upload component.
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UploadI18N.AddFiles
Translations for adding files.
static class
UploadI18N.DropFiles
Translations for dropping files.
static class
UploadI18N.Error
Exception translations.
static class
UploadI18N.SingleMulti
Abstract translation class for single and multi mode translations.
static class
UploadI18N.Units
unit translations.
static class
UploadI18N.Uploading
Upload time translation strings.
-
Constructor Summary
Constructors Constructor Description UploadI18N()
-
Method Summary
All Methods Modifier and Type Method Description UploadI18N.AddFiles
getAddFiles()
Get add files translations.
String
getCancel()
Deprecated.
since Vaadin 22,getCancel()
is deprecated as the `cancel` translation is not used anywhere.UploadI18N.DropFiles
getDropFiles()
Get drop translation.
UploadI18N.Error
getError()
Get error translations.
UploadI18N.Units
getUnits()
Get unit translations.
UploadI18N.Uploading
getUploading()
Get uploading translations.
UploadI18N
setAddFiles(UploadI18N.AddFiles addFiles)
Set add files translations.
UploadI18N
setCancel(String cancel)
Deprecated.
since Vaadin 22,setCancel(String)
is deprecated as the `cancel` translation is not used anywhere.UploadI18N
setDropFiles(UploadI18N.DropFiles dropFiles)
Set drop translation.
UploadI18N
setError(UploadI18N.Error error)
Set error translations.
UploadI18N
setUnits(UploadI18N.Units units)
Set unit translations.
UploadI18N
setUnits(List<String> units)
Set unit translations.
UploadI18N
setUploading(UploadI18N.Uploading uploading)
Set uploading translations.
-
-
-
Method Detail
-
getDropFiles
public UploadI18N.DropFiles getDropFiles()
Get drop translation.
Returns:
drop files translations
-
setDropFiles
public UploadI18N setDropFiles(UploadI18N.DropFiles dropFiles)
Set drop translation.
Parameters:
dropFiles
- drop files translationsReturns:
i18n translations
-
getAddFiles
public UploadI18N.AddFiles getAddFiles()
Get add files translations.
Returns:
add files translations
-
setAddFiles
public UploadI18N setAddFiles(UploadI18N.AddFiles addFiles)
Set add files translations.
Parameters:
addFiles
- add files translationsReturns:
i18n translations
-
getCancel
@Deprecated public String getCancel()
Deprecated.since Vaadin 22,getCancel()
is deprecated as the `cancel` translation is not used anywhere.Get cancel translation.
Returns:
translation string
-
setCancel
@Deprecated public UploadI18N setCancel(String cancel)
Deprecated.since Vaadin 22,setCancel(String)
is deprecated as the `cancel` translation is not used anywhere.Set cancel translation.
Parameters:
cancel
- translation stringReturns:
i18n translations
-
getError
public UploadI18N.Error getError()
Get error translations.
Returns:
error translations
-
setError
public UploadI18N setError(UploadI18N.Error error)
Set error translations.
Parameters:
error
- error translationsReturns:
i18n translations
-
getUploading
public UploadI18N.Uploading getUploading()
Get uploading translations.
Returns:
uploading translations
-
setUploading
public UploadI18N setUploading(UploadI18N.Uploading uploading)
Set uploading translations.
Parameters:
uploading
- uploading translationsReturns:
i18n translations
-
getUnits
public UploadI18N.Units getUnits()
Get unit translations.
Returns:
list of unit translations
-
setUnits
public UploadI18N setUnits(List<String> units)
Set unit translations.
Parameters:
units
- list of unit translationsReturns:
i18n translations
-
setUnits
public UploadI18N setUnits(UploadI18N.Units units)
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.
-
-