Java Doc for Markup.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » model » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.rave.web.ui.model.Markup

All known Subclasses:   com.sun.rave.web.ui.model.ScriptMarkup,
Markup
public class Markup (Code)

Utility bean that serves as an accumulating buffer for well formed markup fragments typically generated by renderers. The fundamental API is modelled after ResponseWriter in JavaServer Faces.





Method Summary
public  voidclear()
    
protected  voidclose()
    
public  voidendElement(String name)
    

Accumulate the end of an element, after closing any open element created by a call to startElement().

public  StringgetEncoding()
    
public  StringgetMarkup()
    
protected  voidhexadecimal(int i)
    
protected  voidhexadecimals(char ch)
    
protected  voidnumeric(char ch)
    
public  voidsetEncoding(String encoding)
    
public  voidstartElement(String name, UIComponent component)
    

Accumulate the start of a new element, up to and including the element name.

public  StringtoString()
    

Return the markup that has been accumulated in this element.

public  voidwriteAttribute(String name, Object value, String property)
    

Accumulate an attribute name and corresponding value.

public  voidwriteComment(Object comment)
    
public  voidwriteRaw(Object raw, String property)
    
public  voidwriteText(Object text, String property)
    
public  voidwriteURIAttribute(String name, Object value, String property)
    

Accumulate an attribute name and corresponding URI value.




Method Detail
clear
public void clear()(Code)

Clear any accumulated markup stored in this object, making it suitable for reuse.




close
protected void close()(Code)

Close the currently open starting element, if any.




endElement
public void endElement(String name)(Code)

Accumulate the end of an element, after closing any open element created by a call to startElement(). Elements must be closed in the inverse order from which they were opened; it is an error to do otherwise.


Parameters:
  name - Name of the element to be ended
exception:
  NullPointerException - if nameis null



getEncoding
public String getEncoding()(Code)

Return the character encoding assumed to be used when the markup contained in this instance is ultimately rendered.




getMarkup
public String getMarkup()(Code)

Return the markup that has been accumulated in this element, as a String suitable for direct transcription to the response buffer.




hexadecimal
protected void hexadecimal(int i)(Code)

Append the hexadecimal equivalent of the specified numeric value.




hexadecimals
protected void hexadecimals(char ch)(Code)

Append the specified character as an escaped two-hex-digit value.


Parameters:
  ch - Character to be escaped



numeric
protected void numeric(char ch)(Code)

Append a numeric escape for the specified character.


Parameters:
  ch - Character to be escaped



setEncoding
public void setEncoding(String encoding)(Code)

Set the character encoding assumed to be used when the markup contained in this instance is ultimately rendered.


Parameters:
  encoding - The new character encoding



startElement
public void startElement(String name, UIComponent component)(Code)

Accumulate the start of a new element, up to and including the element name. Once this method has been called, clients can call writeAttribute() or writeURIAttriute() to add attributes and their corresponding values. The starting element will be closed on any subsequent call to startElement(), writeComment(), writeText(), writeRaw(), endElement(), or getMarkup().


Parameters:
  name - Name of the element to be started
Parameters:
  component - The UIComponent (if any)to which this element corresponds
exception:
  NullPointerException - if nameis null



toString
public String toString()(Code)

Return the markup that has been accumulated in this element. This is an alias for the getMarkup() method.




writeAttribute
public void writeAttribute(String name, Object value, String property)(Code)

Accumulate an attribute name and corresponding value. This method may only be called after a call to startElement() and before the opened element has been closed.


Parameters:
  name - Attribute name to be added
Parameters:
  value - Attribute value to be added
Parameters:
  property - Name of the component property or attribute (if any)of the UIComponent associated with the containingelement, to which the generated attribute corresponds
exception:
  IllegalStateException - if this method is calledwhen there is no currently open element
exception:
  NullPointerException - if nameor value is null



writeComment
public void writeComment(Object comment)(Code)

Accumulate a comment containing the specified text, after converting that text to a String (if necessary) and performing any escaping appropriate for the markup language being rendered.

If there is an open element that has been created by a call to startElement(), that element will be closed first.


Parameters:
  comment - Text content of the comment
exception:
  NullPointerException - if commentis null



writeRaw
public void writeRaw(Object raw, String property)(Code)

Accumulate an object, after converting it to a String (if necessary) WITHOUT performing escaping appropriate for the markup language being rendered.

If there is an open element that has been created by a call to startElement(), that element will be closed first.


Parameters:
  raw - Raw content to be written
Parameters:
  property - Name of the component property or attribute (if any)of the UIComponent associated with the containingelement, to which the generated content corresponds
exception:
  NullPointerException - if textis null



writeText
public void writeText(Object text, String property)(Code)

Accumulate an object, after converting it to a String (if necessary) and after performing any escaping appropriate for the markup language being rendered.

If there is an open element that has been created by a call to startElement(), that element will be closed first.


Parameters:
  text - Text to be written
Parameters:
  property - Name of the component property or attribute (if any)of the UIComponent associated with the containingelement, to which the generated attribute corresponds
exception:
  NullPointerException - if textis null



writeURIAttribute
public void writeURIAttribute(String name, Object value, String property)(Code)

Accumulate an attribute name and corresponding URI value. This method may only be called after a call to startElement() and before the opened element has been closed.


Parameters:
  name - Attribute name to be added
Parameters:
  value - Attribute value to be added
Parameters:
  property - Name of the component property or attribute (if any)of the UIComponent associated with the containingelement, to which the generated attribute corresponds
exception:
  IllegalStateException - if this method is calledwhen there is no currently open element
exception:
  NullPointerException - if nameor value is null



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.