public class FieldFileSize extends Field
Retrieves the size of the current document's file or 0 if the size cannot be determined.
In the current implementation, uses the Document.getOriginalFileName() property to retrieve the file name used to determine the file size.
| Modifier and Type | Method and Description |
|---|---|
int |
getSwitchType(java.lang.String switchName) |
boolean |
isInKilobytes()
Gets whether to display the file size in kilobytes.
|
void |
isInKilobytes(boolean value)
Sets whether to display the file size in kilobytes.
|
boolean |
isInMegabytes()
Gets whether to display the file size in megabytes.
|
void |
isInMegabytes(boolean value)
Sets whether to display the file size in megabytes.
|
getDisplayResult, getEnd, getFieldCode, getFieldCode, getFormat, getLocaleId, getResult, getSeparator, getStart, getType, isDirty, isDirty, isLocked, isLocked, needStoreOldResultNodes, remove, setLocaleId, setResult, unlink, update, updatepublic boolean isInKilobytes()
public void isInKilobytes(boolean value)
throws java.lang.Exception
value - Whether to display the file size in kilobytes.java.lang.Exceptionpublic boolean isInMegabytes()
public void isInMegabytes(boolean value)
throws java.lang.Exception
value - Whether to display the file size in megabytes.java.lang.Exceptionpublic int getSwitchType(java.lang.String switchName)