public class DirectUploadDef
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
private int[] |
eventCodes
An array of legacy event codes.
|
private java.lang.String[] |
filters
The variable holds an array of file system selection dialog filters.
|
private boolean |
multiple
Represents a boolean flag indicating whether multiple uploads is enabled or not.
|
private java.lang.String |
title
A title for the upload dialog.
|
private boolean |
upload
Represents the upload status of a file,
true for success, false for en error. |
private java.lang.String |
uploadDir
Represents the local file system directory where files are uploaded.
|
private int |
widgetId
Represents the unique identifier for a widget.
|
| Constructor and Description |
|---|
DirectUploadDef()
Constructs a new DirectUploadDef object.
|
DirectUploadDef(int widgetId)
Constructs a new DirectUploadDef object.
|
DirectUploadDef(int widgetId,
int[] eventCodes,
java.lang.String title,
boolean multiple,
boolean upload,
java.lang.String uploadDir,
java.lang.String[] filters)
Constructs a new DirectUploadDef object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectUploadDef |
find(java.util.List<DirectUploadDef> list,
int widgetId)
Finds a DirectUploadDef object in the given list based on the widgetId.
|
int[] |
getEventCodes()
Retrieves the array of legacy event codes associated with the DirectUploadDef object.
|
java.lang.String[] |
getFilters()
Retrieves the array of filters associated with the DirectUploadDef object.
|
java.lang.String |
getTitle()
Retrieves the title of the upload dialog.
|
java.lang.String |
getUploadDir()
Retrieves the directory for file uploads.
|
int |
getWidgetId()
Retrieves the ID of the widget.
|
boolean |
isMultiple()
Checks whether multiple files can be uploaded.
|
boolean |
isUpload()
Checks whether uploading is enabled for the DirectUploadDef object.
|
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
private int widgetId
private int[] eventCodes
private java.lang.String title
private boolean multiple
private boolean upload
true for success, false for en error.private java.lang.String uploadDir
private java.lang.String[] filters
public DirectUploadDef()
public DirectUploadDef(int widgetId)
widgetId - the ID of the widgetpublic DirectUploadDef(int widgetId,
int[] eventCodes,
java.lang.String title,
boolean multiple,
boolean upload,
java.lang.String uploadDir,
java.lang.String[] filters)
widgetId - the ID of the widgeteventCodes - the array of legacy event codestitle - the title of the upload dialogmultiple - indicates whether multiple files can be uploadedupload - indicates whether uploading is enableduploadDir - the directory for file uploadsfilters - the array of upload filterspublic static DirectUploadDef find(java.util.List<DirectUploadDef> list, int widgetId)
list - The list of DirectUploadDef objects to search fromwidgetId - The widgetId to match againstpublic int getWidgetId()
public int[] getEventCodes()
public java.lang.String getTitle()
public boolean isMultiple()
public boolean isUpload()
public java.lang.String getUploadDir()
public java.lang.String[] getFilters()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object tojava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the objectjava.io.IOExceptionjava.lang.ClassNotFoundException