Java Doc for DOM.java in  » Ajax » dwr » jsx3 » app » 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.app 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.proxy.io.Context
      jsx3.lang.Object
         jsx3.app.DOM

DOM
public class DOM extends jsx3.lang.Object (Code)
Registers all DOM nodes in an instance of jsx3.app.Server and publishes related events. This class keeps all contained JSX objects indexed on id and name.
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator


Field Summary
final public static  intTYPEADD
    
final public static  intTYPEREARRANGE
    
final public static  intTYPEREMOVE
    

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

Method Summary
public  voidadd(jsx3.app.Model objJSX)
     Adds a JSX object to this DOM and indexes it by its id and name.
public  voiddestroy()
     The instance finalizer.
public  jsx3.app.Modelget(String strId)
     Looks up a DOM object contained in this DOM by id or name.
Parameters:
  strId - either the id of the object to return or its name.
public  Tget(String strId, Class<T> returnType)
     Looks up a DOM object contained in this DOM by id or name.
public  voidgetAllByName(String strName, org.directwebremoting.proxy.Callback<Object[]> callback)
     Returns all the DOM nodes in this DOM with a name of strName.
public  jsx3.app.ModelgetById(String strId)
     Looks up a DOM object contained in this DOM by id.
Parameters:
  strId - the id of the object to return.
public  TgetById(String strId, Class<T> returnType)
     Looks up a DOM object contained in this DOM by id.
public  jsx3.app.ModelgetByName(String strName)
     Looks up a DOM object contained in this DOM by name.
public  TgetByName(String strName, Class<T> returnType)
     Looks up a DOM object contained in this DOM by name.
public  voidnewId(String strNameSpace, org.directwebremoting.proxy.Callback<String> callback)
     Creates a new unique system id.
public  voidonChange(int TYPE, String JSXPARENTID, String JSXID)
    
public  voidonNameChange(jsx3.app.Model objJSX, String oldName)
     A method that must be called after changing the name of a contained DOM node.
public  voidpublish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)
     Publishes an event to all subscribed objects.
public  voidremove(jsx3.app.Model objJSX)
     Removes a JSX object from this DOM and removes it from the indices.
public  voidsubscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, String objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(Object[] strEventId, String objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidsubscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)
     Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance.
public  voidunsubscribe(String strEventId, String objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(String strEventId, jsx3.lang.Object objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(Object[] strEventId, String objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribeAll(String strEventId)
     Unsubscribes all subscribed objects to a type of event published by this object.

Field Detail
TYPEADD
final public static int TYPEADD(Code)
0



TYPEREARRANGE
final public static int TYPEREARRANGE(Code)
2



TYPEREMOVE
final public static int TYPEREMOVE(Code)
1




Constructor Detail
DOM
public DOM(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



DOM
public DOM()(Code)
The instance initializer.




Method Detail
add
public void add(jsx3.app.Model objJSX)(Code)
Adds a JSX object to this DOM and indexes it by its id and name.
Parameters:
  objJSX -



destroy
public void destroy()(Code)
The instance finalizer.



get
public jsx3.app.Model get(String strId)(Code)
Looks up a DOM object contained in this DOM by id or name.
Parameters:
  strId - either the id of the object to return or its name. the matching DOM object or null if none found.



get
public T get(String strId, Class<T> returnType)(Code)
Looks up a DOM object contained in this DOM by id or name.
Parameters:
  strId - either the id of the object to return or its name.
Parameters:
  returnType - The expected return type the matching DOM object or null if none found.



getAllByName
public void getAllByName(String strName, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)
Returns all the DOM nodes in this DOM with a name of strName. The name index keeps a bucket of DOM nodes for each unique name. Therefore, this method performs efficiently.
Parameters:
  strName - the name of the objects to return.
Parameters:
  callback - an array of the matching DOM nodes. This return value should not be mutated asthat will effect the internal functioning of this DOM.



getById
public jsx3.app.Model getById(String strId)(Code)
Looks up a DOM object contained in this DOM by id.
Parameters:
  strId - the id of the object to return. the matching DOM object or null if none found.



getById
public T getById(String strId, Class<T> returnType)(Code)
Looks up a DOM object contained in this DOM by id.
Parameters:
  strId - the id of the object to return.
Parameters:
  returnType - The expected return type the matching DOM object or null if none found.



getByName
public jsx3.app.Model getByName(String strName)(Code)
Looks up a DOM object contained in this DOM by name. It is left to the developer to specify unique names for all DOM nodes that must be accessed in this manner. If more than one DOM nodes exist with a name of strName the behavior of this method is undefined.
Parameters:
  strName - the name of the object to return. the matching DOM object or null if none found.



getByName
public T getByName(String strName, Class<T> returnType)(Code)
Looks up a DOM object contained in this DOM by name. It is left to the developer to specify unique names for all DOM nodes that must be accessed in this manner. If more than one DOM nodes exist with a name of strName the behavior of this method is undefined.
Parameters:
  strName - the name of the object to return.
Parameters:
  returnType - The expected return type the matching DOM object or null if none found.



newId
public void newId(String strNameSpace, org.directwebremoting.proxy.Callback<String> callback)(Code)
Creates a new unique system id.
Parameters:
  strNameSpace - the application namespace for which to generate the id.



onChange
public void onChange(int TYPE, String JSXPARENTID, String JSXID)(Code)
called when a change to the JSX DOM occurs for this server instance (adopt, load, delete, etc); publishes an event object (javascript object) with the following named properties: subject (jsx3.app.DOM.EVENT_CHANGE); type (jsx3.app.DOM.TYPEADD | jsx3.app.DOM.TYPEREMOVE); parentId (id of JSX parent); jsxId (id of element added or removed)
Parameters:
  TYPE - one of: jsx3.app.DOM.TYPEADD, jsx3.app.DOM.TYPEREMOVE
Parameters:
  JSXPARENTID - id of dom parent
Parameters:
  JSXID - id of dom element either added or removed



onNameChange
public void onNameChange(jsx3.app.Model objJSX, String oldName)(Code)
A method that must be called after changing the name of a contained DOM node. This method updates the name index appropriately.
Parameters:
  objJSX -
Parameters:
  oldName - the name before it was changed



publish
public void publish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Publishes an event to all subscribed objects.
Parameters:
  objEvent - the event, should have at least a field 'subject' that is the event id, another common field is 'target' (target will default to this instance)
Parameters:
  callback - the number of listeners to which the event was broadcast



remove
public void remove(jsx3.app.Model objJSX)(Code)
Removes a JSX object from this DOM and removes it from the indices.
Parameters:
  objJSX -



subscribe
public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, String objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(Object[] strEventId, String objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



subscribe
public void subscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)
Subscribes an object or function to a type of event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
Parameters:
  objFunction - if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance



unsubscribe
public void unsubscribe(String strEventId, String objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribe
public void unsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribe
public void unsubscribe(String strEventId, jsx3.lang.Object objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribe
public void unsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribe
public void unsubscribe(Object[] strEventId, String objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribe
public void unsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)
Unsubscribe an object or function from an event published by this object. As of version 3.4 a string value for objHandler is deprecated.
Parameters:
  strEventId - the event type(s).
Parameters:
  objHandler - the value of objHandler passed to subscribe



unsubscribeAll
public void unsubscribeAll(String strEventId)(Code)
Unsubscribes all subscribed objects to a type of event published by this object.
Parameters:
  strEventId - the event type



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.