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


java.lang.Object
   org.directwebremoting.ScriptBuffer

ScriptBuffer
public class ScriptBuffer (Code)
A ScriptBuffer is like a StringBuffer except that it is used to create Javascript commands. There are 2 version of the append() method:

The first is ScriptBuffer.appendScript(String) which assumes that the parameter is to be inserted literally into the output.

The second is ScriptBuffer.appendData(String) (and variants for Object and primitive types) which assumes that the parameter is a variable which should be properly converted, escaped and quoted.
author:
   Joe Walker [joe at getahead dot ltd dot uk]




Constructor Summary
public  ScriptBuffer()
     Create an empty ScriptBuffer.
public  ScriptBuffer(String str)
     Create a ScriptBuffer with some initial content.

Method Summary
public  ScriptBufferappendAll(ScriptBuffer buffer)
    
Parameters:
  buffer - The ScriptBuffer to merge into this script this.
public  ScriptBufferappendCall(String funcName)
     Call a named function with no parameters.
Parameters:
  funcName - The name of the function to call this.
public  ScriptBufferappendCall(String funcName, Object param1)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function
Parameters:
  param9 - The ninth parameter to the above function this.
public  ScriptBufferappendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10)
     Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function
Parameters:
  param9 - The ninth parameter to the above function
Parameters:
  param10 - The tenth parameter to the above function this.
public  ScriptBufferappendData(boolean b)
    
Parameters:
  b - The boolean to add to the script this.
public  ScriptBufferappendData(char c)
    
Parameters:
  c - The char to add to the script this.
public  ScriptBufferappendData(double d)
    
Parameters:
  d - The double to add to the script this.
public  ScriptBufferappendData(float f)
    
Parameters:
  f - The float to add to the script this.
public  ScriptBufferappendData(int i)
    
Parameters:
  i - The int to add to the script this.
public  ScriptBufferappendData(long l)
    
Parameters:
  l - The long to add to the script this.
public  ScriptBufferappendData(Object obj)
    
Parameters:
  obj - The Object to add to the script this.
public  ScriptBufferappendData(String str)
    
Parameters:
  str - The String to add to the script this.
public  ScriptBufferappendScript(String str)
    
Parameters:
  str - The String to add to the script this.
public  List<? extends Object>getParts()
     For DWR use only - This method is not part of the public API.
public  StringtoString()
    


Constructor Detail
ScriptBuffer
public ScriptBuffer()(Code)
Create an empty ScriptBuffer.



ScriptBuffer
public ScriptBuffer(String str)(Code)
Create a ScriptBuffer with some initial content. ScriptBuffer.appendScript(String) is called with the passed string
Parameters:
  str - The initial string to place in the buffer




Method Detail
appendAll
public ScriptBuffer appendAll(ScriptBuffer buffer)(Code)

Parameters:
  buffer - The ScriptBuffer to merge into this script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(java.lang.String)



appendCall
public ScriptBuffer appendCall(String funcName)(Code)
Call a named function with no parameters.
Parameters:
  funcName - The name of the function to call this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(String)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function
Parameters:
  param9 - The ninth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObjectObjectObject)



appendCall
public ScriptBuffer appendCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10)(Code)
Call a named function with one parameter.
Parameters:
  funcName - The name of the function to call
Parameters:
  param1 - The first parameter to the above function
Parameters:
  param2 - The second parameter to the above function
Parameters:
  param3 - The third parameter to the above function
Parameters:
  param4 - The fourth parameter to the above function
Parameters:
  param5 - The fifth parameter to the above function
Parameters:
  param6 - The sixth parameter to the above function
Parameters:
  param7 - The seventh parameter to the above function
Parameters:
  param8 - The eighth parameter to the above function
Parameters:
  param9 - The ninth parameter to the above function
Parameters:
  param10 - The tenth parameter to the above function this. To allow buffer.append(x).append(y).append(z);
See Also:   ScriptProxy.addFunctionCall(StringObjectObjectObjectObjectObjectObjectObject)



appendData
public ScriptBuffer appendData(boolean b)(Code)

Parameters:
  b - The boolean to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(boolean)



appendData
public ScriptBuffer appendData(char c)(Code)

Parameters:
  c - The char to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(char)



appendData
public ScriptBuffer appendData(double d)(Code)

Parameters:
  d - The double to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(double)



appendData
public ScriptBuffer appendData(float f)(Code)

Parameters:
  f - The float to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(float)



appendData
public ScriptBuffer appendData(int i)(Code)

Parameters:
  i - The int to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(int)



appendData
public ScriptBuffer appendData(long l)(Code)

Parameters:
  l - The long to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(long)



appendData
public ScriptBuffer appendData(Object obj)(Code)

Parameters:
  obj - The Object to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(java.lang.Object)



appendData
public ScriptBuffer appendData(String str)(Code)

Parameters:
  str - The String to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(java.lang.String)



appendScript
public ScriptBuffer appendScript(String str)(Code)

Parameters:
  str - The String to add to the script this. To allow buffer.append(x).append(y).append(z);
See Also:   java.lang.StringBuffer.append(java.lang.String)



getParts
public List<? extends Object> getParts()(Code)
For DWR use only - This method is not part of the public API. Do not use it without understanding the implications for future proofing. The list of parts of the final output script



toString
public String toString()(Code)



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.