Java Doc for WebPaintTarget.java in  » Web-Framework » Millstone » org » millstone » webadapter » 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 » Web Framework » Millstone » org.millstone.webadapter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.millstone.webadapter.WebPaintTarget

WebPaintTarget
public class WebPaintTarget implements PaintTarget(Code)
User Interface Description Language Target.
author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0



Constructor Summary
public  WebPaintTarget(HttpVariableMap variableMap, UIDLTransformerType type, WebAdapterServlet webAdapterServlet, Theme theme)
     Create a new XMLPrintWriter, without automatic line flushing.

Method Summary
public  voidaddAttribute(String name, boolean value)
     Adds a boolean attribute to component.
public  voidaddAttribute(String name, Resource value)
     Adds a resource attribute to component.
public  voidaddAttribute(String name, int value)
     Adds a integer attribute to component.
public  voidaddAttribute(String name, long value)
     Adds a long attribute to component.
public  voidaddAttribute(String name, String value)
     Adds a string attribute to component.
public  voidaddCharacterData(String text)
     Add CDATA node to target UIDL-tree.
public  voidaddSection(String sectionTagName, String sectionData)
     Print single text section. Prints full text section.
public  voidaddText(String str)
     Print XML-escaped text.
public  voidaddUIDL(String xml)
    
public  voidaddUploadStreamVariable(VariableOwner owner, String name)
     Add a upload stream type variable.
public  voidaddVariable(VariableOwner owner, String name, String value)
     Add a string type variable.
public  voidaddVariable(VariableOwner owner, String name, int value)
     Add a int type variable.
public  voidaddVariable(VariableOwner owner, String name, boolean value)
     Add a boolean type variable.
public  voidaddVariable(VariableOwner owner, String name, String[] value)
     Add a string array type variable.
public  voidaddXMLSection(String sectionTagName, String sectionData, String namespace)
    
public  voidclose()
     Close the paint target.
public  voidendTag(String tagName)
     Print element end tag.
public static  StringescapeXML(String xml)
     Substitute the XML sensitive characters with predefined XML entities.
public static  StringBufferescapeXML(StringBuffer xml)
     Substitute the XML sensitive characters with predefined XML entities.
public  StringgetUIDL()
     Get the UIDL already printed to stream.
public  voidstartTag(String tagName)
     Print element start tag.
public  booleanstartTag(Paintable paintable, String tag)
     Print element start tag of a paintable section. Starts a paintable section using the given tag.


Constructor Detail
WebPaintTarget
public WebPaintTarget(HttpVariableMap variableMap, UIDLTransformerType type, WebAdapterServlet webAdapterServlet, Theme theme) throws PaintException(Code)
Create a new XMLPrintWriter, without automatic line flushing.
Parameters:
  out - A character-output stream.




Method Detail
addAttribute
public void addAttribute(String name, boolean value) throws PaintException(Code)
Adds a boolean attribute to component. Atributes must be added before any content is written.
Parameters:
  name - Attribute name
Parameters:
  value - Attribute value



addAttribute
public void addAttribute(String name, Resource value) throws PaintException(Code)
Adds a resource attribute to component. Atributes must be added before any content is written.
Parameters:
  name - Attribute name
Parameters:
  value - Attribute value



addAttribute
public void addAttribute(String name, int value) throws PaintException(Code)
Adds a integer attribute to component. Atributes must be added before any content is written.
Parameters:
  name - Attribute name
Parameters:
  value - Attribute value this object



addAttribute
public void addAttribute(String name, long value) throws PaintException(Code)
Adds a long attribute to component. Atributes must be added before any content is written.
Parameters:
  name - Attribute name
Parameters:
  value - Attribute value this object



addAttribute
public void addAttribute(String name, String value) throws PaintException(Code)
Adds a string attribute to component. Atributes must be added before any content is written.
Parameters:
  name - Boolean attribute name
Parameters:
  value - Boolean attribute value this object



addCharacterData
public void addCharacterData(String text) throws PaintException(Code)
Add CDATA node to target UIDL-tree.
Parameters:
  text - Character data to add
since:
   3.1



addSection
public void addSection(String sectionTagName, String sectionData) throws PaintException(Code)
Print single text section. Prints full text section. The section data is escaped from XML tags and surrounded by XML start and end-tags.



addText
public void addText(String str) throws PaintException(Code)
Print XML-escaped text.



addUIDL
public void addUIDL(String xml) throws PaintException(Code)
Add XML dirctly to UIDL



addUploadStreamVariable
public void addUploadStreamVariable(VariableOwner owner, String name) throws PaintException(Code)
Add a upload stream type variable.
Parameters:
  owner - Listener for variable changes
Parameters:
  name - Variable name
Parameters:
  value - Variable initial value Reference to this.



addVariable
public void addVariable(VariableOwner owner, String name, String value) throws PaintException(Code)
Add a string type variable.
Parameters:
  owner - Listener for variable changes
Parameters:
  name - Variable name
Parameters:
  value - Variable initial value Reference to this.



addVariable
public void addVariable(VariableOwner owner, String name, int value) throws PaintException(Code)
Add a int type variable.
Parameters:
  owner - Listener for variable changes
Parameters:
  name - Variable name
Parameters:
  value - Variable initial value Reference to this.



addVariable
public void addVariable(VariableOwner owner, String name, boolean value) throws PaintException(Code)
Add a boolean type variable.
Parameters:
  owner - Listener for variable changes
Parameters:
  name - Variable name
Parameters:
  value - Variable initial value Reference to this.



addVariable
public void addVariable(VariableOwner owner, String name, String[] value) throws PaintException(Code)
Add a string array type variable.
Parameters:
  owner - Listener for variable changes
Parameters:
  name - Variable name
Parameters:
  value - Variable initial value Reference to this.



addXMLSection
public void addXMLSection(String sectionTagName, String sectionData, String namespace) throws PaintException(Code)
Add XML section with namespace
See Also:   org.millstone.base.terminal.PaintTarget.addXMLSection(StringStringString)



close
public void close() throws PaintException(Code)
Close the paint target. Paint target must be closed before the getUIDL() cn be called. Subsequent attempts to write to paint target. If the target was already closed, call to this function is ignored. will generate an exception.



endTag
public void endTag(String tagName) throws PaintException(Code)
Print element end tag. If the parent tag is closed before every child tag is closed an MillstoneException is raised.
Parameters:
  tag - The name of the end tag



escapeXML
public static String escapeXML(String xml)(Code)
Substitute the XML sensitive characters with predefined XML entities. A new string instance where all occurrences of XML sensitivecharacters are substituted with entities.



escapeXML
public static StringBuffer escapeXML(StringBuffer xml)(Code)
Substitute the XML sensitive characters with predefined XML entities.
Parameters:
  xml - the String to be substituted A new StringBuffer instance where all occurrences of XMLsensitive characters are substituted with entities.



getUIDL
public String getUIDL()(Code)
Get the UIDL already printed to stream. Paint target must be closed before the getUIDL() cn be called.



startTag
public void startTag(String tagName) throws PaintException(Code)
Print element start tag.
Todo:
 Checking of input values
 

Parameters:
  tagName - The name of the start tag



startTag
public boolean startTag(Paintable paintable, String tag) throws PaintException(Code)
Print element start tag of a paintable section. Starts a paintable section using the given tag. The PaintTarget may implement a caching scheme, that checks the paintable has actually changed or can a cached version be used instead. This method should call the startTag method.

If the Paintable is found in cache and this function returns true it may omit the content and close the tag, in which case cached content should be used.

Note: Web adapter does not currently implement caching and this function always returns false.
Parameters:
  paintable - The paintable to start
Parameters:
  tagName - The name of the start tag false
See Also:    org.millstone.base.terminal.PaintTarget#startTag(Paintable, String),
See Also:   #startTag(String)
since:
   3.1



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.