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


java.lang.Object
   org.directwebremoting.proxy.io.Context
      jsx3.lang.Object
         jsx3.net.Form

Form
public class Form extends jsx3.lang.Object (Code)
Provides support for legacy HTML GET and POST forms. Allows the submission of forms with arbitrary key-value pairs as well as file upload. Prompting the user for a file upload field (promptForFile()) is only supported in Microsoft Internet Explorer.
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator


Field Summary
final public static  StringEVENT_FILE_SELECTED
     Event type published when a file has been chosen through user interaction.
final public static  StringEVENT_ON_ERROR
     Event type published when a security error occurs trying to access the response.
final public static  StringEVENT_ON_RESPONSE
     Event type published when the response has loaded.
final public static  StringEVENT_ON_TIMEOUT
     Event type published when the response is still not ready after the specified timeout period.
final public static  StringMETHOD_GET
    
final public static  StringMETHOD_POST
    

Constructor Summary
public  Form(Context context, String extension, ScriptProxy scriptProxy)
    
public  Form(String strMethod, String strAction, boolean bMultipart)
    

Method Summary
public  voidabort()
     Stops polling for a response.
public  voidaddFileUploadField(String strName)
     Adds a file upload field to this form.
public  voidconceal()
     Hides the IFRAME containing this form after it has been shown by calling reveal().
public  voiddestroy()
     Destroys the form and the hidden IFRAME.
public  voidgetAction(org.directwebremoting.proxy.Callback<String> callback)
     Returns the action of this form, the URL that this form is submitted to.
public  voidgetField(String strName, org.directwebremoting.proxy.Callback<String> callback)
     Returns the value of a field in this form.
public  voidgetFields(org.directwebremoting.proxy.Callback<Object[]> callback)
     Returns the names of all fields in this form.
public  voidgetMethod(org.directwebremoting.proxy.Callback<String> callback)
     Returns the method of this form.
public  voidgetMultipart(org.directwebremoting.proxy.Callback<Boolean> callback)
     Returns whether this form is multipart.
public  voidgetResponseText(org.directwebremoting.proxy.Callback<String> callback)
     Returns the content of the response as a string.
public  jsx3.xml.CdfDocumentgetResponseXML()
     Returns the content of the response as an XML document.
public  TgetResponseXML(Class<T> returnType)
     Returns the content of the response as an XML document.
public  jsx3.net.FormnewFromFragment(String strFragment)
     Creates a new form and initialize it from the HTML representation of a form.
public  voidpromptForFile(String strFieldName)
     Invokes the operating system file browser to choose a file for a file upload field.
public  voidpublish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)
     Publishes an event to all subscribed objects.
public  voidremoveField(String strName)
     Removes a field from this form.
public  voidreveal(int l, int t, int w, int h)
     Reveals the IFRAME containing this form for debugging purposes.
public  voidsend(int intPollInterval, int intTimeout)
     Sends the form.
public  voidsetAction(String action)
     Sets the action of this form.
public  voidsetField(String strName, String strValue, boolean bConcat)
     Sets the value of a field in this form.
Parameters:
  strName - the name of the form field to set.
Parameters:
  strValue - the new value of form field.
Parameters:
  bConcat - if true, will append " " + strValue to the existing value.
public  voidsetMethod(String method)
     Sets the method of this form.
public  voidsetMultipart(boolean multipart)
     Sets whether this form is multipart.
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(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(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(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, 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(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  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, 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, 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, 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, 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  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  voidunsubscribe(String strEventId, jsx3.lang.Object objHandler)
     Unsubscribe an object or function from an event published by this object.
public  voidunsubscribe(String strEventId, String 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, jsx3.lang.Object 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
EVENT_FILE_SELECTED
final public static String EVENT_FILE_SELECTED(Code)
Event type published when a file has been chosen through user interaction. The event has properties field and value.



EVENT_ON_ERROR
final public static String EVENT_ON_ERROR(Code)
Event type published when a security error occurs trying to access the response.



EVENT_ON_RESPONSE
final public static String EVENT_ON_RESPONSE(Code)
Event type published when the response has loaded.



EVENT_ON_TIMEOUT
final public static String EVENT_ON_TIMEOUT(Code)
Event type published when the response is still not ready after the specified timeout period.



METHOD_GET
final public static String METHOD_GET(Code)



METHOD_POST
final public static String METHOD_POST(Code)




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



Form
public Form(String strMethod, String strAction, boolean bMultipart)(Code)
instance initializer
Parameters:
  strMethod - form method, METHOD_GET (default) or METHOD_POST
Parameters:
  strAction - the URL to submit to
Parameters:
  bMultipart - if true the form can support file upload




Method Detail
abort
public void abort()(Code)
Stops polling for a response.



addFileUploadField
public void addFileUploadField(String strName)(Code)
Adds a file upload field to this form.
Parameters:
  strName - the name of the new field.



conceal
public void conceal()(Code)
Hides the IFRAME containing this form after it has been shown by calling reveal().



destroy
public void destroy()(Code)
Destroys the form and the hidden IFRAME. This method should be called after receiving an onResponse, onError, or onTimeout event for proper garbage collection.



getAction
public void getAction(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the action of this form, the URL that this form is submitted to.
Parameters:
  callback - action



getField
public void getField(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the value of a field in this form.
Parameters:
  strName - the name of the form field to query.
Parameters:
  callback - the field value or null if no such field exists.



getFields
public void getFields(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)
Returns the names of all fields in this form.



getMethod
public void getMethod(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the method of this form.
Parameters:
  callback - METHOD_GET or METHOD_POST.



getMultipart
public void getMultipart(org.directwebremoting.proxy.Callback<Boolean> callback)(Code)
Returns whether this form is multipart. Only multipart forms may upload files.



getResponseText
public void getResponseText(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the content of the response as a string.



getResponseXML
public jsx3.xml.CdfDocument getResponseXML()(Code)
Returns the content of the response as an XML document.



getResponseXML
public T getResponseXML(Class<T> returnType)(Code)
Returns the content of the response as an XML document.
Parameters:
  returnType - The expected return type



newFromFragment
public jsx3.net.Form newFromFragment(String strFragment)(Code)
Creates a new form and initialize it from the HTML representation of a form.
Parameters:
  strFragment - the html fragment containing a
tag.



promptForFile
public void promptForFile(String strFieldName)(Code)
Invokes the operating system file browser to choose a file for a file upload field. This method is not supported in browsers other than Microsoft Internet Explorer.
Parameters:
  strFieldName - the name of the file upload field.



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



removeField
public void removeField(String strName)(Code)
Removes a field from this form.
Parameters:
  strName - the name of the form field to remove.



reveal
public void reveal(int l, int t, int w, int h)(Code)
Reveals the IFRAME containing this form for debugging purposes. Dimensions of the revealed form may be provided or a default position and dimensions will be used.
Parameters:
  l - pixels from the left side of the HTML page that the IFRAME will be displayed.
Parameters:
  t - pixels from the top of the HTML page that the IFRAME will be displayed.
Parameters:
  w - width of the revealed IFRAME, in pixels.
Parameters:
  h - height of the revealed IFRAME, in pixels.



send
public void send(int intPollInterval, int intTimeout)(Code)
Sends the form. Sending the form is always asynchronous. Once a form has been sent it may not be reused.
Parameters:
  intPollInterval - milliseconds between checking for a response. If not provided, the default value is 1/4 sec.
Parameters:
  intTimeout - total milliseconds before timeout. If not provided, the default value is 30 sec.



setAction
public void setAction(String action)(Code)
Sets the action of this form.
Parameters:
  action -



setField
public void setField(String strName, String strValue, boolean bConcat)(Code)
Sets the value of a field in this form.
Parameters:
  strName - the name of the form field to set.
Parameters:
  strValue - the new value of form field.
Parameters:
  bConcat - if true, will append " " + strValue to the existing value. The space isonly inserted if the existing value is not empty.



setMethod
public void setMethod(String method)(Code)
Sets the method of this form.
Parameters:
  method - METHOD_GET or METHOD_POST.



setMultipart
public void setMultipart(boolean multipart)(Code)
Sets whether this form is multipart.
Parameters:
  multipart -



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(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(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(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, 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(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



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, 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, 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, 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, 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



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



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(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, 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, 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



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.