| java.lang.Object org.directwebremoting.proxy.io.Context jsx3.lang.Object jsx3.app.Model jsx3.gui.Painted jsx3.gui.Sound
Sound | public class Sound extends jsx3.gui.Painted (Code) | | Class that provides an object-oriented interface for playing sounds in a GI application.
Note that playing sounds in Internet Explorer requires a plug-in. This class currently supports the following
sound plug-ins:
Apple Quicktime
RealPlayer
Windows Media Player
The installed plug-ins determine which sound file formats are supported.
author: Joe Walker [joe at getahead dot org] author: DRAPGEN - Dwr Reverse Ajax Proxy GENerator |
Method Summary | |
public jsx3.lang.Object | doEvent(String strType, jsx3.lang.Object objContext) Publishes a model event. | public T | doEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType) Publishes a model event. | public void | getCanDrag(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object supports programmatic drag, meanining it will allow any contained item to be
dragged and dropped on another container supporting drop. | public void | getCanDrop(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether this object can be the target of a drop event. | public void | getCanMove(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object can be moved around the screen (this is not the same as drag/drop). | public void | getCanSpy(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object can be spyglassed. | public void | getEvent(String strType, org.directwebremoting.proxy.Callback<String> callback) Returns the event script registered for the given event type. | public jsx3.lang.Object | getEvents() Returns the associative array containing all the registered event script of this object. | public T | getEvents(Class<T> returnType) Returns the associative array containing all the registered event script of this object. | public void | getLength(org.directwebremoting.proxy.Callback<Float> callback) Returns the length of the sound in seconds. | public void | getMenu(org.directwebremoting.proxy.Callback<String> callback) Returns the name of the jsx3.gui.Menu instance to display (as a context menu) when a user
clicks on this object with the right button. | public void | getPluginVersion(org.directwebremoting.proxy.Callback<String> callback) Returns the full name and version number of the audio plugin used to play this sound. | public void | getPosition(org.directwebremoting.proxy.Callback<Float> callback) Returns the current position (elapsed time) of the sound in seconds. | public void | getURL(org.directwebremoting.proxy.Callback<String> callback) Returns the URL of the sound file. | public void | getVolume(org.directwebremoting.proxy.Callback<Integer> callback) Returns the volume that the sound plays at. | public void | hasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback) Returns true if there is a event script registered for the given event type. | public void | pause() Pauses the sound. | public void | play() Plays the sound. | public jsx3.gui.HotKey | registerHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.Interactive | removeEvent(String strType) Removes an event script registered for the given model event type. | public T | removeEvent(String strType, Class<T> returnType) Removes an event script registered for the given model event type. | public jsx3.gui.Interactive | removeEvents() Removes all events scripts registered with this object. | public T | removeEvents(Class<T> returnType) Removes all events scripts registered with this object. | public void | rewind() Stops and rewinds the sound. | public jsx3.gui.Interactive | setCanDrag(int bDrag) Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. | public T | setCanDrag(int bDrag, Class<T> returnType) Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. | public jsx3.gui.Interactive | setCanDrop(int bDrop) Sets whether this object can be the target of a drop event. | public T | setCanDrop(int bDrop, Class<T> returnType) Sets whether this object can be the target of a drop event. | public jsx3.gui.Interactive | setCanMove(int bMovable) Sets whether is object can be moved around the screen (this is not the same as drag/drop). | public T | setCanMove(int bMovable, Class<T> returnType) Sets whether is object can be moved around the screen (this is not the same as drag/drop). | public jsx3.gui.Interactive | setCanSpy(int bSpy) Sets whether is object can be spyglassed. | public T | setCanSpy(int bSpy, Class<T> returnType) Sets whether is object can be spyglassed. | public jsx3.gui.Interactive | setEvent(String strScript, String strType) Programmatically sets an event of this instance. | public T | setEvent(String strScript, String strType, Class<T> returnType) Programmatically sets an event of this instance. | public jsx3.gui.Interactive | setMenu(String strMenu) Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. | public T | setMenu(String strMenu, Class<T> returnType) Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. | public void | setPosition(float position) Sets the current position (elapsed time) of the sound in seconds. | public void | setSpyStyles(String strCSS) Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters: strCSS - valid CSS. | public jsx3.gui.Sound | setURL(String strURL) Sets the URL of the sound file. | public jsx3.gui.Sound | setVolume(int intVolume) Sets the volume of this sound. | public void | showSpy(String strHTML, int intLeft, int intTop) called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. | public void | showSpy(String strHTML, jsx3.gui.Event intLeft, int intTop) called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. |
Sound | public Sound(Context context, String extension, ScriptProxy scriptProxy)(Code) | | All reverse ajax proxies need context to work from
Parameters: scriptProxy - The place we are writing scripts to Parameters: context - The script that got us to where we are now |
Sound | public Sound(String strName, String strURL)(Code) | | The instance initializer.
Parameters: strName - the JSX name Parameters: strURL - the URL of the sound file to play |
doEvent | public jsx3.lang.Object doEvent(String strType, jsx3.lang.Object objContext)(Code) | | Publishes a model event. This method both evaluates any registered event script for the given event type
and publishes the event through the EventDispatcher interface. This method ensures that any
registered event script is executed in isolation to prevent most side effects.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the context property of the event object that is published through the EventDispatcher interface. the result of evaluating the event script or null if not event script is registered |
doEvent | public T doEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType)(Code) | | Publishes a model event. This method both evaluates any registered event script for the given event type
and publishes the event through the EventDispatcher interface. This method ensures that any
registered event script is executed in isolation to prevent most side effects.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the context property of the event object that is published through the EventDispatcher interface. Parameters: returnType - The expected return type the result of evaluating the event script or null if not event script is registered |
getCanDrag | public void getCanDrag(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether is object supports programmatic drag, meanining it will allow any contained item to be
dragged and dropped on another container supporting drop.
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE |
getCanMove | public void getCanMove(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether is object can be moved around the screen (this is not the same as drag/drop).
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE |
getEvent | public void getEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns the event script registered for the given event type. This script could have been set by the
setEvent() method or during component deserialization.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: callback - the JavaScript event script |
getEvents | public jsx3.lang.Object getEvents()(Code) | | Returns the associative array containing all the registered event script of this object. This method returns
the instance field itself and not a copy.
an associative array mapping event type to event script |
getEvents | public T getEvents(Class<T> returnType)(Code) | | Returns the associative array containing all the registered event script of this object. This method returns
the instance field itself and not a copy.
Parameters: returnType - The expected return type an associative array mapping event type to event script |
getPosition | public void getPosition(org.directwebremoting.proxy.Callback<Float> callback)(Code) | | Returns the current position (elapsed time) of the sound in seconds.
Parameters: callback - the current position in seconds or NaN if the position can not be determined |
hasEvent | public void hasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns true if there is a event script registered for the given event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: callback - the JavaScript event script |
pause | public void pause()(Code) | | Pauses the sound. Calling play() after calling pause() will play the sound from the
point where it was paused.
|
play | public void play()(Code) | | Plays the sound.
|
registerHotKey | public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
removeEvent | public jsx3.gui.Interactive removeEvent(String strType)(Code) | | Removes an event script registered for the given model event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class this object |
removeEvent | public T removeEvent(String strType, Class<T> returnType)(Code) | | Removes an event script registered for the given model event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: returnType - The expected return type this object |
removeEvents | public T removeEvents(Class<T> returnType)(Code) | | Removes all events scripts registered with this object.
Parameters: returnType - The expected return type this object |
rewind | public void rewind()(Code) | | Stops and rewinds the sound.
|
setCanDrag | public jsx3.gui.Interactive setCanDrag(int bDrag)(Code) | | Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
Implementing classes can decide whether to consult this value or ignore it.
Parameters: bDrag - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanDrag | public T setCanDrag(int bDrag, Class<T> returnType)(Code) | | Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
Implementing classes can decide whether to consult this value or ignore it.
Parameters: bDrag - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanDrop | public jsx3.gui.Interactive setCanDrop(int bDrop)(Code) | | Sets whether this object can be the target of a drop event. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bDrop - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanDrop | public T setCanDrop(int bDrop, Class<T> returnType)(Code) | | Sets whether this object can be the target of a drop event. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bDrop - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanMove | public jsx3.gui.Interactive setCanMove(int bMovable)(Code) | | Sets whether is object can be moved around the screen (this is not the same as drag/drop). Implementing classes
can decide whether to consult this value or ignore it.
Parameters: bMovable - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanMove | public T setCanMove(int bMovable, Class<T> returnType)(Code) | | Sets whether is object can be moved around the screen (this is not the same as drag/drop). Implementing classes
can decide whether to consult this value or ignore it.
Parameters: bMovable - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanSpy | public jsx3.gui.Interactive setCanSpy(int bSpy)(Code) | | Sets whether is object can be spyglassed. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bSpy - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanSpy | public T setCanSpy(int bSpy, Class<T> returnType)(Code) | | Sets whether is object can be spyglassed. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bSpy - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setEvent | public jsx3.gui.Interactive setEvent(String strScript, String strType)(Code) | | Programmatically sets an event of this instance. Sets the script that will execute when this object publishes
a model event. The script value will be saved in the serialization file of a component. Not all classes that
implement this interface will publish events of every type. Consult the documentation of a class for a
description of the events it publishes.
For programmatic registering of event handlers when persistence in a serialization file is not required,
consider using jsx3.util.EventDispatcher.subscribe() instead of this method. Whenever a model
event is published, it is published using the EventDispatcher interface as well as by executing
any registered event script.
Parameters: strScript - the actual JavaScript code that will execute when the given event is published.For example: obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE); Parameters: strType - the event type. Must be one of the model event types defined as static fields in this class reference to this |
setEvent | public T setEvent(String strScript, String strType, Class<T> returnType)(Code) | | Programmatically sets an event of this instance. Sets the script that will execute when this object publishes
a model event. The script value will be saved in the serialization file of a component. Not all classes that
implement this interface will publish events of every type. Consult the documentation of a class for a
description of the events it publishes.
For programmatic registering of event handlers when persistence in a serialization file is not required,
consider using jsx3.util.EventDispatcher.subscribe() instead of this method. Whenever a model
event is published, it is published using the EventDispatcher interface as well as by executing
any registered event script.
Parameters: strScript - the actual JavaScript code that will execute when the given event is published.For example: obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE); Parameters: strType - the event type. Must be one of the model event types defined as static fields in this class Parameters: returnType - The expected return type reference to this |
setMenu | public jsx3.gui.Interactive setMenu(String strMenu)(Code) | | Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. The name is a pointer by-name to a JSX object in the same server.
Parameters: strMenu - name or id (jsxname or jsxid) of the context menu this object |
setMenu | public T setMenu(String strMenu, Class<T> returnType)(Code) | | Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. The name is a pointer by-name to a JSX object in the same server.
Parameters: strMenu - name or id (jsxname or jsxid) of the context menu Parameters: returnType - The expected return type this object |
setPosition | public void setPosition(float position)(Code) | | Sets the current position (elapsed time) of the sound in seconds.
Parameters: position - the new position in seconds |
setSpyStyles | public void setSpyStyles(String strCSS)(Code) | | Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters: strCSS - valid CSS. For example, text-decoration:underline;color:red; |
setURL | public jsx3.gui.Sound setURL(String strURL)(Code) | | Sets the URL of the sound file.
Parameters: strURL - the URL of the sound file to play this object |
setVolume | public jsx3.gui.Sound setVolume(int intVolume)(Code) | | Sets the volume of this sound. The change takes effect immediately.
Parameters: intVolume - the volume to play the sound at. 0 is mute, 100 is loudest this object |
showSpy | public void showSpy(String strHTML, int intLeft, int intTop)(Code) | | called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. Otherwise, use null. |
showSpy | public void showSpy(String strHTML, jsx3.gui.Event intLeft, int intTop)(Code) | | called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. Otherwise, use null. |
Methods inherited from jsx3.gui.Painted | public void focus(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.lang.Object getAbsolutePosition(String objRoot, String objGUI)(Code)(Java Doc) public T getAbsolutePosition(String objRoot, String objGUI, Class<T> returnType)(Code)(Java Doc) public void getAttribute(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.lang.Object getAttributes()(Code)(Java Doc) public T getAttributes(Class<T> returnType)(Code)(Java Doc) public void getDynamicProperty(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getRendered(jsx3.lang.Object objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void onAfterPaint(String objGUI)(Code)(Java Doc) public void paint(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void paintChild(jsx3.gui.Painted objChild, boolean bGroup, String objGUI, boolean bCascadeOnly)(Code)(Java Doc) public void paintChildren(Object[] c, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void recalcBox(Object[] properties)(Code)(Java Doc) public jsx3.gui.Painted removeAttribute(String strName)(Code)(Java Doc) public T removeAttribute(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.gui.Painted removeAttributes()(Code)(Java Doc) public T removeAttributes(Class<T> returnType)(Code)(Java Doc) public void repaint(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.gui.Painted setAttribute(String strName, String strValue)(Code)(Java Doc) public jsx3.gui.Painted setDynamicProperty(String strName, String strValue)(Code)(Java Doc)
|
Methods inherited from jsx3.app.Model | public void adoptChild(jsx3.app.Model objChild, boolean bRepaint, boolean bForce)(Code)(Java Doc) public jsx3.app.Model doClone(int intPersist, int intMode)(Code)(Java Doc) public T doClone(int intPersist, int intMode, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf)(Code)(Java Doc) public T findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf)(Code)(Java Doc) public T findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfName(String strName)(Code)(Java Doc) public T getAncestorOfName(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(String strType)(Code)(Java Doc) public T getAncestorOfType(String strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(Class strType)(Code)(Java Doc) public T getAncestorOfType(Class strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType)(Code)(Java Doc) public T getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(int vntIndexOrName)(Code)(Java Doc) public T getChild(int vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(String vntIndexOrName)(Code)(Java Doc) public T getChild(String vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public void getChildIndex(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getChildren(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly)(Code)(Java Doc) public T getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly, Class<T> returnType)(Code)(Java Doc) public void getDescendantsOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(String strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(Class strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getFirstChild()(Code)(Java Doc) public T getFirstChild(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(Class strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(Class strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(String strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(String strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public void getHelpId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getLastChild()(Code)(Java Doc) public T getLastChild(Class<T> returnType)(Code)(Java Doc) public void getLoadType(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getMetaValue(String strKey, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getNS(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getName(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getNextSibling()(Code)(Java Doc) public T getNextSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getParent()(Code)(Java Doc) public T getParent(Class<T> returnType)(Code)(Java Doc) public void getPersistence(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model getPreviousSibling()(Code)(Java Doc) public T getPreviousSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Server getServer()(Code)(Java Doc) public jsx3.net.URIResolver getUriResolver()(Code)(Java Doc) public T getUriResolver(Class<T> returnType)(Code)(Java Doc) public void insertBefore(jsx3.app.Model objMoveChild, jsx3.app.Model objPrecedeChild, boolean bRepaint, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public jsx3.app.Model load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void loadAndCache(java.net.URI strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public void loadAndCache(String strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public jsx3.app.Model loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void onAfterAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onAfterAttach()(Code)(Java Doc) public void onBeforeAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onChangeServer(jsx3.app.Server objNewServer, jsx3.app.Server objOldServer)(Code)(Java Doc) public void onDestroy(jsx3.app.Model objParent)(Code)(Java Doc) public void onRemoveChild(Object[] objChild, int intIndex)(Code)(Java Doc) public void onRemoveChild(jsx3.app.Model objChild, int intIndex)(Code)(Java Doc) public void onSetChild(java.lang.Object objChild, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void onSetParent(java.lang.Object objParent, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void publish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model removeChild(jsx3.app.Model vntItem)(Code)(Java Doc) public T removeChild(jsx3.app.Model vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChild(int vntItem)(Code)(Java Doc) public T removeChild(int vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChildren(Object[] arrChildren)(Code)(Java Doc) public T removeChildren(Object[] arrChildren, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, java.net.URI strSourceURL, String strNS)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, String strSourceURL, String strNS)(Code)(Java Doc) public void setHelpId(String strId)(Code)(Java Doc) public void setLoadType(int intLoadType)(Code)(Java Doc) public void setMetaValue(String strKey, String strValue)(Code)(Java Doc) public void setName(String strName)(Code)(Java Doc) public jsx3.app.Model setPersistence(int intPersist)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void toXML(jsx3.lang.Object objProperties, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.xml.CdfDocument toXMLDoc(jsx3.lang.Object objProperties)(Code)(Java Doc) public T toXMLDoc(jsx3.lang.Object objProperties, Class<T> returnType)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribeAll(String strEventId)(Code)(Java Doc)
|
Methods inherited from jsx3.lang.Object | public void ignoreReturn()(Code)(Java Doc)
|
|
|