Class CmsFileInfo
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- org.opencms.gwt.client.ui.input.upload.CmsFileInfo
-
public class CmsFileInfo extends com.google.gwt.core.client.JavaScriptObject
A file object.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<CmsFileInfo>
INFO_COMPARATOR
The file info comparator.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsFileInfo()
Creates a simple JS file object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
Returns the file name.int
getFileSize()
Returns the file size.java.lang.String
getFileSuffix()
Returns the suffix of the file name with the dot at the beginning e.g.com.google.gwt.dom.client.InputElement
getInputElement()
Returns the associated input element if available.java.lang.String
getOverrideFileName()
Returns the file name to override the original one if set, or the original file name.void
setOverrideFileName(java.lang.String overrideFileName)
Sets the file name to override the original one.
-
-
-
Field Detail
-
INFO_COMPARATOR
public static final java.util.Comparator<CmsFileInfo> INFO_COMPARATOR
The file info comparator.
-
-
Constructor Detail
-
CmsFileInfo
protected CmsFileInfo()
Creates a simple JS file object.
-
-
Method Detail
-
getFileName
public final java.lang.String getFileName()
Returns the file name.- Returns:
- the file name
-
getFileSize
public final int getFileSize()
Returns the file size.- Returns:
- the file size
-
getFileSuffix
public final java.lang.String 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
public final com.google.gwt.dom.client.InputElement getInputElement()
Returns the associated input element if available.- Returns:
- the input element
-
getOverrideFileName
public final java.lang.String getOverrideFileName()
Returns the file name to override the original one if set, or the original file name.- Returns:
- the override file name
-
setOverrideFileName
public final void setOverrideFileName(java.lang.String overrideFileName)
Sets the file name to override the original one.- Parameters:
overrideFileName
- the override file name
-
-