Package org.loboevolution.events
Interface ProgressEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
ProgressEventImpl
The ProgressEvent interface represents events measuring progress of an underlying process,
like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource
of an <img>, <audio>, <video>, <style> or <link>).
- See Also:
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The ProgressEvent.lengthComputable read-only property is a Boolean flag indicating if the resource concerned by the ProgressEvent has a length that can be calculated.The ProgressEvent.loaded read-only property is an integer representing the amount of work already performed by the underlying process.getTotal()
The ProgressEvent.total read-only property is an unsigned 64-bit integer value indicating the total size of the data being processed or transmitted.Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
-
Method Details
-
getLengthComputable
boolean getLengthComputable()The ProgressEvent.lengthComputable read-only property is a Boolean flag indicating if the resource concerned by the ProgressEvent has a length that can be calculated. If not, the ProgressEvent.total property has no significant value.- See Also:
-
getLoaded
Double getLoaded()The ProgressEvent.loaded read-only property is an integer representing the amount of work already performed by the underlying process. The ratio of work done can be calculated with the property and ProgressEvent.total. When downloading a resource using HTTP, this only represent the part of the content itself, not headers and other overhead.- See Also:
-
getTotal
Double getTotal()The ProgressEvent.total read-only property is an unsigned 64-bit integer value indicating the total size of the data being processed or transmitted. In the case of an HTTP transmission, this is the size of the body of the message (the Content-Length), and does not include headers and other overhead.- See Also:
-