public class Upload extends Object
Modifier and Type | Method and Description |
---|---|
void |
$init(Widget wgt,
DOMElement parent,
String option)
Constructor
|
void |
cancel(int sid)
Cancels the fileupload if the fileupload is progressing.
|
static void |
close(String uuid,
int sid)
Closes the fileupload
|
void |
destroy()
Destroys the fileupload.
|
static void |
destroy(java.lang.Object uplder)
Destroys the uploader to upload
|
static void |
error(String msg,
String uuid,
int sid)
Shows the error message of the fileupload
|
void |
finish(int sid)
Finishes the fileupload if the fileupload is done.
|
String |
getKey()
Returns the uuid of the uploader with its sequential number
|
static boolean |
isFinish(Widget wgt)
Returns the fileupload of the widget whether is finish or not.
|
void |
openFileDialog()
trigger file input's click to open file dialog
|
static void |
sendResult(String uuid,
String contentId,
int sid)
Sends the upload result to server.
|
static boolean |
start(java.lang.Object uplder)
Starts the uploader to upload a file.
|
void |
sync()
Synchronizes the visual states of the element with fileupload
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void $init(Widget wgt, DOMElement parent, String option)
wgt
- the widget belongs to the file uploadparent
- the element representing where the upload element
is appendedoption
- the upload option.
It contains upload options like maxsize, multiple, and so on.
It specifies the widget class name of the fileupload.public void sync()
public void openFileDialog()
public void destroy()
public String getKey()
public void cancel(int sid)
sid
- the sequential number of the uploaderpublic void finish(int sid)
sid
- the sequential number of the uploaderpublic static void error(String msg, String uuid, int sid)
msg
- the error messageuuid
- the ID of the widgetsid
- the sequential number of the uploaderpublic static void close(String uuid, int sid)
uuid
- the ID of the widgetsid
- the sequential number of the uploaderpublic static void sendResult(String uuid, String contentId, int sid)
uuid
- the ID of the widgetcontentId
- the ID of the content being uploadedsid
- the sequential number of the uploaderpublic static boolean isFinish(Widget wgt)
wgt
- the widgetpublic static boolean start(java.lang.Object uplder)
uplder
- the uploaderpublic static void destroy(java.lang.Object uplder)
uplder
- Copyright © 2005-2023 Potix Corporation. All Rights Reserved.