Class CmsFileInfo
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.ui.input.upload.CmsFileInfo
A file object.
- Since:
- 8.0.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringReturns the file name.final intReturns the file size.final StringReturns the suffix of the file name with the dot at the beginning e.g.final com.google.gwt.dom.client.InputElementReturns the associated input element if available.final StringReturns the file name to override the original one if set, or the original file name.final voidsetOverrideFileName(String overrideFileName) Sets the file name to override the original one.Methods inherited from class com.google.gwt.core.client.JavaScriptObjectcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
- 
Field Details- 
INFO_COMPARATORThe file info comparator.
 
- 
- 
Constructor Details- 
CmsFileInfoprotected CmsFileInfo()Creates a simple JS file object.
 
- 
- 
Method Details- 
getFileNameReturns the file name.- Returns:
- the file name
 
- 
getFileSizeReturns the file size.- Returns:
- the file size
 
- 
getFileSuffixReturns the suffix of the file name with the dot at the beginning e.g.".zip".- Returns:
- the suffix of the file name
 
- 
getInputElementReturns the associated input element if available.- Returns:
- the input element
 
- 
getOverrideFileNameReturns the file name to override the original one if set, or the original file name.- Returns:
- the override file name
 
- 
setOverrideFileNameSets the file name to override the original one.- Parameters:
- overrideFileName- the override file name
 
 
-