public class CmsFileInfo extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<CmsFileInfo> |
INFO_COMPARATOR
The file info comparator.
|
Modifier | Constructor and Description |
---|---|
protected |
CmsFileInfo()
Creates a simple JS file object.
|
Modifier and Type | Method and 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.
|
public static final java.util.Comparator<CmsFileInfo> INFO_COMPARATOR
protected CmsFileInfo()
public final java.lang.String getFileName()
public final int getFileSize()
public final java.lang.String getFileSuffix()
".zip"
.public final com.google.gwt.dom.client.InputElement getInputElement()
public final java.lang.String getOverrideFileName()
public final void setOverrideFileName(java.lang.String overrideFileName)
overrideFileName
- the override file name