Java Doc for Sound.java in  » Ajax » dwr » jsx3 » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » dwr » jsx3.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Constructor Summary
public  Sound(Context context, String extension, ScriptProxy scriptProxy)
    
public  Sound(String strName, String strURL)
     The instance initializer.

Method Summary
public  jsx3.lang.ObjectdoEvent(String strType, jsx3.lang.Object objContext)
     Publishes a model event.
public  TdoEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType)
     Publishes a model event.
public  voidgetCanDrag(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  voidgetCanDrop(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether this object can be the target of a drop event.
public  voidgetCanMove(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  voidgetCanSpy(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether is object can be spyglassed.
public  voidgetEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)
     Returns the event script registered for the given event type.
public  jsx3.lang.ObjectgetEvents()
     Returns the associative array containing all the registered event script of this object.
public  TgetEvents(Class<T> returnType)
     Returns the associative array containing all the registered event script of this object.
public  voidgetLength(org.directwebremoting.proxy.Callback<Float> callback)
     Returns the length of the sound in seconds.
public  voidgetMenu(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  voidgetPluginVersion(org.directwebremoting.proxy.Callback<String> callback)
     Returns the full name and version number of the audio plugin used to play this sound.
public  voidgetPosition(org.directwebremoting.proxy.Callback<Float> callback)
     Returns the current position (elapsed time) of the sound in seconds.
public  voidgetURL(org.directwebremoting.proxy.Callback<String> callback)
     Returns the URL of the sound file.
public  voidgetVolume(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the volume that the sound plays at.
public  voidhasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)
     Returns true if there is a event script registered for the given event type.
public  voidpause()
     Pauses the sound.
public  voidplay()
     Plays the sound.
public  jsx3.gui.HotKeyregisterHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(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.HotKeyregisterHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(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.InteractiveremoveEvent(String strType)
     Removes an event script registered for the given model event type.
public  TremoveEvent(String strType, Class<T> returnType)
     Removes an event script registered for the given model event type.
public  jsx3.gui.InteractiveremoveEvents()
     Removes all events scripts registered with this object.
public  TremoveEvents(Class<T> returnType)
     Removes all events scripts registered with this object.
public  voidrewind()
     Stops and rewinds the sound.
public  jsx3.gui.InteractivesetCanDrag(int bDrag)
     Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
public  TsetCanDrag(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.InteractivesetCanDrop(int bDrop)
     Sets whether this object can be the target of a drop event.
public  TsetCanDrop(int bDrop, Class<T> returnType)
     Sets whether this object can be the target of a drop event.
public  jsx3.gui.InteractivesetCanMove(int bMovable)
     Sets whether is object can be moved around the screen (this is not the same as drag/drop).
public  TsetCanMove(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.InteractivesetCanSpy(int bSpy)
     Sets whether is object can be spyglassed.
public  TsetCanSpy(int bSpy, Class<T> returnType)
     Sets whether is object can be spyglassed.
public  jsx3.gui.InteractivesetEvent(String strScript, String strType)
     Programmatically sets an event of this instance.
public  TsetEvent(String strScript, String strType, Class<T> returnType)
     Programmatically sets an event of this instance.
public  jsx3.gui.InteractivesetMenu(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  TsetMenu(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  voidsetPosition(float position)
     Sets the current position (elapsed time) of the sound in seconds.
public  voidsetSpyStyles(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.SoundsetURL(String strURL)
     Sets the URL of the sound file.
public  jsx3.gui.SoundsetVolume(int intVolume)
     Sets the volume of this sound.
public  voidshowSpy(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  voidshowSpy(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.


Constructor Detail
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




Method Detail
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 contextproperty 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 contextproperty 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



getCanDrop
public void getCanDrop(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether this object can be the target of a drop event.
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



getCanSpy
public void getCanSpy(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether is object can be spyglassed.
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



getLength
public void getLength(org.directwebremoting.proxy.Callback<Float> callback)(Code)
Returns the length of the sound in seconds.
Parameters:
  callback - the length in seconds or NaN if the length can not be determined



getMenu
public void getMenu(org.directwebremoting.proxy.Callback<String> callback)(Code)
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.



getPluginVersion
public void getPluginVersion(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the full name and version number of the audio plugin used to play this sound.



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



getURL
public void getURL(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the URL of the sound file.
Parameters:
  callback - the URL of the sound file to play



getVolume
public void getVolume(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the volume that the sound plays at.
Parameters:
  callback - the volume to play the sound at, [0,100]



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 jsx3.gui.Interactive removeEvents()(Code)
Removes all events scripts registered with this object. 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)

Fields inherited from jsx3.app.Model
final public static int ASYNC_LOAD_TIMEOUT(Code)(Java Doc)
final public static String CIF_VERSION(Code)(Java Doc)
final public static String CURRENT_VERSION(Code)(Java Doc)
final public static int LT_NORMAL(Code)(Java Doc)
final public static int LT_SHOW_DESER(Code)(Java Doc)
final public static int LT_SHOW_PAINT(Code)(Java Doc)
final public static int LT_SLEEP_DESER(Code)(Java Doc)
final public static int LT_SLEEP_PAINT(Code)(Java Doc)
final public static int LT_SLEEP_PD(Code)(Java Doc)
final public static int PERSISTEMBED(Code)(Java Doc)
final public static int PERSISTNONE(Code)(Java Doc)
final public static int PERSISTREF(Code)(Java Doc)
final public static int PERSISTREFASYNC(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)

Methods inherited from org.directwebremoting.proxy.io.Context
protected String getContextPath()(Code)(Java Doc)
protected ScriptBuffer getInitScript()(Code)(Java Doc)
protected ScriptProxy getScriptProxy()(Code)(Java Doc)
protected void setInitScript(ScriptBuffer initScript)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.