public class Uploader extends Object
One upload widget can have multi-instance of uploader to upload multiple files at the same time.
Modifier and Type | Method and Description |
---|---|
void |
$init(Upload upload,
String id,
DOMElement form,
String flnm)
Constructor
|
void |
cancel()
Cancels the uploader to upload.
|
void |
destroy(boolean finish)
Destroys the uploader to upload.
|
void |
end(boolean finish)
Ends the uploader to upload.
|
Widget |
getWidget()
Returns the widget which the uploader belongs to.
|
void |
start()
Starts the uploader to upload
|
boolean |
update(int sent,
int total)
Updates the status of the file being uploaded.
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void $init(Upload upload, String id, DOMElement form, String flnm)
upload
- the upload object belong to the file uploaderid
- the ID of the uploaderform
- the element representing where the uploader element
is appendedflnm
- the name of the file to be uploadedpublic Widget getWidget()
public void destroy(boolean finish)
finish
- if true, the upload is finish.public void start()
public void cancel()
public boolean update(int sent, int total)
sent
- how many percentage being senttotal
- the size of the filepublic void end(boolean finish)
finish
- whether the file is finish.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.