@EventType(value="upload") public class UploadEvent extends MouseEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadEvent.UploadState
Upload stage reported by this event.
|
MouseEvent.MouseButton| Constructor and Description |
|---|
UploadEvent() |
UploadEvent(BaseComponent target,
Object data) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBlob()
Returns the file contents as an input stream.
|
String |
getFile()
Returns the name of the uploaded file.
|
int |
getLoaded()
Returns the number of bytes transferred so far.
|
UploadEvent.UploadState |
getState()
Returns the upload
state. |
int |
getTotal()
Returns the total number of bytes to be transferred.
|
getMouseButton, getPageX, getPageYgetCurrentTarget, getData, getId, getPage, getRelatedTarget, getTarget, getTargetId, getType, isStopped, stopPropagationpublic static final String TYPE
public UploadEvent()
public UploadEvent(BaseComponent target, Object data)
public String getFile()
public InputStream getBlob()
public int getTotal()
public int getLoaded()
public UploadEvent.UploadState getState()
state.state.Copyright © 2018 Fujion Framework. All rights reserved.