It is not a mistake. It's essential to the operation. Just like
callbacks, the message queue is a two-step operation:
1) I declare what sort of messages I want.
2) I collect them periodically.
You cannot do this in one step. The messages are delivered "on demand"
in this new method rather than
by the "push" technology of callbacks. And because there is now such a
much richer variety of message
types -- 16 to date:
atomPicked fileLoaded fileLoadError frameChanged
measurePending measureCompleted measurePicked scriptStarted
scriptEcho scriptStatus scriptError scriptMessage
scriptTerminated userAction viewerRefreshed newOrientation
-- I don't think we want to set this up to track them all. Some, like
newOrientation
involve considerable overhead.
(1) is a call to
getProperty("jmolStatus", "<propertylist>").
(2) is a call to one of
getPropertyAsString("jmolStatus","<propertylist>")
getPropertyAsJSON("jmolStatus","<propertylist>")
getProperty("jmolStatus","<propertylist>")
scriptWait("<script>")
"getProperty" itself is NOT recommended, as it returns a Java object, which
probably won't be much use in the JavaScript world. (But another applet
could
certainly call that for direct Hashtable/Vector extracation.)
On the other hand, I could imagine:
scriptWait ("script", "message list")
:)
Bob
Miguel wrote:
The return from scriptWait() depends upon what you have asked for in
a previous "getProperty()" call.
Uhhh ... this needs to be corrected.
Miguel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users