Java Doc for ServerMessage.java in  » Ajax » NextApp-Echo2 » nextapp » echo2 » webrender » 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 » NextApp Echo2 » nextapp.echo2.webrender 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   nextapp.echo2.webrender.output.XmlDocument
      nextapp.echo2.webrender.ServerMessage

ServerMessage
public class ServerMessage extends XmlDocument (Code)
The outgoing XML message which synchronizes the state of the client to that of the server.


Field Summary
final public static  StringGROUP_ID_INIT
     Constant for the "init" message part group.
final public static  StringGROUP_ID_POSTUPDATE
     Constant for the "postupdate" message part group.
final public static  StringGROUP_ID_PREREMOVE
     Constant for the "preremove" message part group.
final public static  StringGROUP_ID_REMOVE
     Constant for the "remove" message part group.
final public static  StringGROUP_ID_UPDATE
     Constant for the "update" message part group.
final public static  intLEFT_TO_RIGHT
     Constant for the use with setRootLayoutDirection() indicating a left-to-right layout direction.
final public static  intRIGHT_TO_LEFT
     Constant for the use with setRootLayoutDirection() indicating a right-to-left layout direction.

Constructor Summary
public  ServerMessage()
     Creates a new ServerMessage.

Method Summary
public  voidaddLibrary(String serviceId)
     Adds a JavaScript library service to be dynamically loaded.
public  ElementaddPart(String groupId, String processor)
     Adds a "message-part" to the document that will be processed by the specified client-side processor object.
public  ElementaddPartGroup(String groupId)
     Adds a "group" to the document.
public  ElementappendPartDirective(String groupId, String processor, String directiveName)
     Creates and appends a directive element beneath to a message part. Attempts to append the directive to an existing message part if the last message part in the specified group happens to have the same processor as is specified by the processor argument.
public  ElementgetItemizedDirective(String groupId, String processor, String directiveName, String[] keyAttributeNames, String[] keyAttributeValues)
     Creates or retrieves a suitable "Itemized Directive" element.
public  ElementgetPartGroup(String groupId)
     Retrieves the "message-part-group" element pertaining to a specific group.
public  voidsetAsynchronousMonitorInterval(int newValue)
     Sets the interval between asynchronous requests to the server to check for server-pushed updates.
public  voidsetModalContextRootId(String id)
     Sets the element id of the root of the modal context.
public  voidsetRootLayoutDirection(int layoutDirection)
     Sets the root layout direction of the application, i.e., either LEFT_TO_RIGHT or RIGHT_TO_LEFT.
public  voidsetTransactionId(long transactionId)
     Sets the numeric identifier for this transaction, which will be returned in next client message.

Field Detail
GROUP_ID_INIT
final public static String GROUP_ID_INIT(Code)
Constant for the "init" message part group. Message parts in this group are processed before the "preremove", "remove" "update", and "postupdate" groups.



GROUP_ID_POSTUPDATE
final public static String GROUP_ID_POSTUPDATE(Code)
Constant for the "postupdate" message part group. Message parts in this group are processed after the "init", "preremove", "remove" and "update" groups.



GROUP_ID_PREREMOVE
final public static String GROUP_ID_PREREMOVE(Code)
Constant for the "preremove" message part group. Message parts in this group are processed after the "init" group. Message parts in this group are processed before the "remove", "update" and "postupdate" groups.



GROUP_ID_REMOVE
final public static String GROUP_ID_REMOVE(Code)
Constant for the "remove" message part group. Message parts in this group are processed after the "init" and "preremove" groups. Message parts in this group are processed before the "update" and "postupdate" groups. This group is used for removing elements from the DOM.



GROUP_ID_UPDATE
final public static String GROUP_ID_UPDATE(Code)
Constant for the "update" message part group. Message parts in this group are processed after the "init", "preremove" and "remove" groups. Message parts in this group are processed before the "postupdate" group. This group is used for adding elements to the DOM.



LEFT_TO_RIGHT
final public static int LEFT_TO_RIGHT(Code)
Constant for the use with setRootLayoutDirection() indicating a left-to-right layout direction.



RIGHT_TO_LEFT
final public static int RIGHT_TO_LEFT(Code)
Constant for the use with setRootLayoutDirection() indicating a right-to-left layout direction.




Constructor Detail
ServerMessage
public ServerMessage()(Code)
Creates a new ServerMessage.




Method Detail
addLibrary
public void addLibrary(String serviceId)(Code)
Adds a JavaScript library service to be dynamically loaded.
Parameters:
  serviceId - the id of the service to load (the service must returnJavaScript code with content-type "text/javascript")



addPart
public Element addPart(String groupId, String processor)(Code)
Adds a "message-part" to the document that will be processed by the specified client-side processor object.
Parameters:
  groupId - the id of the group to which the "message-part" elementshould be added
Parameters:
  processor - the name of the client-side processor object which willprocess the message part, e.g., "EchoEventUpdate", or"EchoDomUpdate" the created "message-part" element



addPartGroup
public Element addPartGroup(String groupId)(Code)
Adds a "group" to the document. Part groups enable certain groups of operations, e.g., remove operations, to be performed before others, e.g., add operations.
Parameters:
  groupId - the identifier of the group the created "message-part-group" element.



appendPartDirective
public Element appendPartDirective(String groupId, String processor, String directiveName)(Code)
Creates and appends a directive element beneath to a message part. Attempts to append the directive to an existing message part if the last message part in the specified group happens to have the same processor as is specified by the processor argument. If this is not possible, a new "message-part" element is created and the directive is added to it.
Parameters:
  groupId -
Parameters:
  processor - the name of the client-side processor object which willprocess the message part, e.g., "EchoEventUpdate", or"EchoDomUpdate"
Parameters:
  directiveName - the name of the directive, e.g., "event-add" or"dom-remove". the directive element



getItemizedDirective
public Element getItemizedDirective(String groupId, String processor, String directiveName, String[] keyAttributeNames, String[] keyAttributeValues)(Code)
Creates or retrieves a suitable "Itemized Directive" element. Itemized Directives may be used to create more bandwidth-efficient ServerMessage output in cases where a particular operation may need to be performed on a significant number of targets. In the case that the directive must be created, it will be added to the message. Repeated invocations of this method with equivalent values of all parameters will result in the same directive being returned each time. This method should only be used for adding directives to the GROUP_ID_PREREMOVE and GROUP_ID_POSTUPDATE groups as itemized directives will not be executed in-order, which will cause problems if they are used for to manipulate the DOM.
Parameters:
  groupId - the identifier of the target message part group,either GROUP_ID_PREREMOVE or GROUP_ID_POSTUPDATE
Parameters:
  processor - the name of the client-side processor object which willprocess the message part containing the directive, e.g.,"EchoEventUpdate", or "EchoDomUpdate"
Parameters:
  directiveName - the name of the directive, e.g., "event-add" or"dom-remove"
Parameters:
  keyAttributeNames - the names of the key attributes
Parameters:
  keyAttributeValues - the values of the key attributes the created/retrieved directive element



getPartGroup
public Element getPartGroup(String groupId)(Code)
Retrieves the "message-part-group" element pertaining to a specific group.
Parameters:
  groupId - the id of the group the "message-part-group" element



setAsynchronousMonitorInterval
public void setAsynchronousMonitorInterval(int newValue)(Code)
Sets the interval between asynchronous requests to the server to check for server-pushed updates.
Parameters:
  newValue - the new interval in milliseconds (a negative value willdisable asynchronous requests)



setModalContextRootId
public void setModalContextRootId(String id)(Code)
Sets the element id of the root of the modal context. Only elements within the modal context will be enabled. A id value of null will disable the modal context, thus allowing ALL elements to be enabled.
Parameters:
  id - the root element id of the modal context



setRootLayoutDirection
public void setRootLayoutDirection(int layoutDirection)(Code)
Sets the root layout direction of the application, i.e., either LEFT_TO_RIGHT or RIGHT_TO_LEFT.
Parameters:
  layoutDirection - the new layout direction



setTransactionId
public void setTransactionId(long transactionId)(Code)
Sets the numeric identifier for this transaction, which will be returned in next client message.
Parameters:
  transactionId - the transaction identifier



Methods inherited from nextapp.echo2.webrender.output.XmlDocument
public Document getDocument()(Code)(Java Doc)
public void render(PrintWriter pw) throws IOException(Code)(Java Doc)
public void setOutputProperties(Properties newValue)(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.