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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the file name.final int
Returns the file size.final String
Returns the suffix of the file name with the dot at the beginning e.g.final com.google.gwt.dom.client.InputElement
Returns the associated input element if available.final String
Returns the file name to override the original one if set, or the original file name.final void
setOverrideFileName
(String overrideFileName) Sets the file name to override the original one.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Field Details
-
INFO_COMPARATOR
The file info comparator.
-
-
Constructor Details
-
CmsFileInfo
protected CmsFileInfo()Creates a simple JS file object.
-
-
Method Details
-
getFileName
Returns the file name.- Returns:
- the file name
-
getFileSize
Returns the file size.- Returns:
- the file size
-
getFileSuffix
Returns the suffix of the file name with the dot at the beginning e.g.".zip"
.- Returns:
- the suffix of the file name
-
getInputElement
Returns the associated input element if available.- Returns:
- the input element
-
getOverrideFileName
Returns the file name to override the original one if set, or the original file name.- Returns:
- the override file name
-
setOverrideFileName
Sets the file name to override the original one.- Parameters:
overrideFileName
- the override file name
-