public class JsWorker extends JsAbstractWorker implements Worker
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsWorker() |
Modifier and Type | Method and Description |
---|---|
EventListener |
getOnmessage()
An event listener that is called whenever a
MessageEvent with type message bubbles through the worker. |
void |
postMessage(Object message)
Sends a message to the worker's inner scope.
|
void |
postMessage(Object message,
Indexable messagePorts)
Sends a message to the worker's inner scope.
|
void |
setOnmessage(EventListener listener) |
void |
terminate()
Immediately terminates the worker.
|
void |
webkitPostMessage(Object message) |
void |
webkitPostMessage(Object message,
Indexable messagePorts) |
getOnerror, setOnerror
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addEventListener, addEventListener, dispatchEvent, getOnerror, removeEventListener, removeEventListener, setOnerror
intAt, length
numberAt
public final EventListener getOnmessage()
Worker
MessageEvent
with type message
bubbles through the worker. The message is stored in the event's data
member.getOnmessage
in interface Worker
public final void setOnmessage(EventListener listener)
setOnmessage
in interface Worker
public final void postMessage(Object message)
Worker
Sends a message to the worker's inner scope. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object that does not contain functions or cyclical references (since the object is converted to JSON internally).
aMessage
onmessage
handler. This may be any value or JavaScript object that does not contain functions or cyclical references (since the object is converted to JSON internally).postMessage
in interface Worker
public final void postMessage(Object message, Indexable messagePorts)
Worker
Sends a message to the worker's inner scope. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object that does not contain functions or cyclical references (since the object is converted to JSON internally).
aMessage
onmessage
handler. This may be any value or JavaScript object that does not contain functions or cyclical references (since the object is converted to JSON internally).postMessage
in interface Worker
public final void terminate()
Worker
Immediately terminates the worker. This does not offer the worker an opportunity to finish its operations; it is simply stopped at once.
void terminate();
public final void webkitPostMessage(Object message)
webkitPostMessage
in interface Worker
public final void webkitPostMessage(Object message, Indexable messagePorts)
webkitPostMessage
in interface Worker
Copyright © 2018. All rights reserved.