Package com.vaadin.flow.component.upload
Class UploadI18N
- java.lang.Object
-
- com.vaadin.flow.component.upload.UploadI18N
-
- All Implemented Interfaces:
Serializable
public class UploadI18N extends Object implements Serializable
The I18N helper file for the upload component.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUploadI18N.AddFilesTranslations for adding files.static classUploadI18N.DropFilesTranslations for dropping files.static classUploadI18N.ErrorException translations.static classUploadI18N.Filefile translations.static classUploadI18N.SingleMultiAbstract translation class for single and multi mode translations.static classUploadI18N.Unitsunit translations.static classUploadI18N.UploadingUpload time translation strings.
-
Constructor Summary
Constructors Constructor Description UploadI18N()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UploadI18N.AddFilesgetAddFiles()Get add files translations.StringgetCancel()Deprecated.since Vaadin 22,getCancel()is deprecated as the `cancel` translation is not used anywhere.UploadI18N.DropFilesgetDropFiles()Get drop translation.UploadI18N.ErrorgetError()Get error translations.UploadI18N.FilegetFile()Get file translations.UploadI18N.UnitsgetUnits()Get unit translations.UploadI18N.UploadinggetUploading()Get uploading translations.UploadI18NsetAddFiles(UploadI18N.AddFiles addFiles)Set add files translations.UploadI18NsetCancel(String cancel)Deprecated.since Vaadin 22,setCancel(String)is deprecated as the `cancel` translation is not used anywhere.UploadI18NsetDropFiles(UploadI18N.DropFiles dropFiles)Set drop translation.UploadI18NsetError(UploadI18N.Error error)Set error translations.UploadI18NsetFile(UploadI18N.File file)Set file translations.UploadI18NsetUnits(UploadI18N.Units units)Set unit translations.UploadI18NsetUnits(List<String> units)Set unit translations.UploadI18NsetUploading(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 translations- Returns:
- 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 translations- Returns:
- i18n translations
-
getFile
public UploadI18N.File getFile()
Get file translations.- Returns:
- file translations
-
setFile
public UploadI18N setFile(UploadI18N.File file)
Set file translations.- Parameters:
file- file translations- Returns:
- 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 string- Returns:
- 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 translations- Returns:
- 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 translations- Returns:
- 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 translations- Returns:
- 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.
-
-