Java Doc for DOMContext.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » context » 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 » J2EE » ICEfaces 1.6.1 » com.icesoft.faces.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.icesoft.faces.context.DOMContext

DOMContext
public class DOMContext implements java.io.Serializable(Code)

DOMContext provides a component specific interface to the DOM renderer




Constructor Summary
protected  DOMContext(DOMResponseWriter writer, Document document, Node parentElement)
    

Method Summary
public static  DOMContextattachDOMContext(FacesContext facesContext, UIComponent component)
    
public  ElementcreateElement(String name)
    

Creates an element of the type specified.

public  ElementcreateRootElement(String name)
    

Creates an element of the type specified.

public  TextcreateTextNode(String cData)
    

Creates a Text node given the specified string.

public  voidendNode(FacesContext facesContext, UIComponent component, Node node)
     This method can be used as an alternative to the streamWrite method.
public static  ListfindChildrenWithNodeName(Element root, String nodeName)
    
public  NodegetCursorParent()
     Get the position in the document where the next DOM node will be rendererd.
public static  DOMContextgetDOMContext(FacesContext facesContext, UIComponent component)
    

Get the DOMContext associated with the component.

public  DocumentgetDocument()
    
public  NodegetRootNode()
    
public  booleanisInitialized()
    

Determine whether this instance is initialized.

public  booleanisStreamWriting()
    

Convenience method used by renderers to determine if Stream writing is enabled.

public static  voidremoveChildren(Node parent)
    
public static  voidremoveChildrenByTagName(Element rootElement, String name)
    
public  voidsetCursorParent(Node cursorParent)
    
 voidsetIsolatedRootNode(Node rootElement)
    
public  voidsetRootNode(Node rootNode)
    

Set the rootNode member variable to the parameter Node.

public  voidstartNode(FacesContext facesContext, UIComponent component, Node node)
     This method can be used as an alternative to the streamWrite method.
public  voidstepInto(UIComponent component)
     Maintain the cursor and cursor such that the next rendered component will be rendered as a child of the parameter component.
public  voidstepOver()
     Maintain the cursor and cursor position; step to the position where the next sibling should be rendered.
public  voidstreamWrite(FacesContext facesContext, UIComponent component, Node root, Node halter)
    

Writes the DOM subtree anchored at root to the current ResponseWriter.

public  voidstreamWrite(FacesContext facesContext, UIComponent component)
    


Constructor Detail
DOMContext
protected DOMContext(DOMResponseWriter writer, Document document, Node parentElement)(Code)




Method Detail
attachDOMContext
public static DOMContext attachDOMContext(FacesContext facesContext, UIComponent component)(Code)

This method returns the DOMContext associated with the specified component.


Parameters:
  facesContext - an instance of FacesContext associated withthe lifecycle
Parameters:
  component - component associated with this DOMContext the attached DOMContext



createElement
public Element createElement(String name)(Code)

Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.
In addition, if there are known attributes with default values, Attr nodes representing them are automatically created and attached to the element.


Parameters:
  name - the specified Element type to create the created element



createRootElement
public Element createRootElement(String name)(Code)

Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.
In addition, if there are known attributes with default values, Attr nodes representing them are automatically created and attached to the element. Set the rootNode member variable of this instance to the newly-created Element.


Parameters:
  name - Element



createTextNode
public Text createTextNode(String cData)(Code)

Creates a Text node given the specified string.


Parameters:
  cData - The data for the node. The new Text object.



endNode
public void endNode(FacesContext facesContext, UIComponent component, Node node) throws IOException(Code)
This method can be used as an alternative to the streamWrite method. When using this method you must also use the startNode method.



findChildrenWithNodeName
public static List findChildrenWithNodeName(Element root, String nodeName)(Code)



getCursorParent
public Node getCursorParent()(Code)
Get the position in the document where the next DOM node will be rendererd.



getDOMContext
public static DOMContext getDOMContext(FacesContext facesContext, UIComponent component)(Code)

Get the DOMContext associated with the component. Do not attach the DOMContext instance to its parent element.


Parameters:
  facesContext -
Parameters:
  component - the UIComponent instance whose DOMContext weare retrieving DOMContext



getDocument
public Document getDocument()(Code)
Retrieve the org.w3c.dom.Document instance associated with this DOMContext Document



getRootNode
public Node getRootNode()(Code)

Get the rootNode member variable.

rootNode the root node of this DOMContext instance



isInitialized
public boolean isInitialized()(Code)

Determine whether this instance is initialized. An initialized instance is guaranteed to have a root node.

boolean reflecting whether this instance is initialized.



isStreamWriting
public boolean isStreamWriting()(Code)

Convenience method used by renderers to determine if Stream writing is enabled.




removeChildren
public static void removeChildren(Node parent)(Code)
Remove all children from Node parent
Parameters:
  parent - - the root node to remove



removeChildrenByTagName
public static void removeChildrenByTagName(Element rootElement, String name)(Code)
Removes from the root element all children with node name equal to the nodeName parameter
Parameters:
  rootElement -
Parameters:
  name -



setCursorParent
public void setCursorParent(Node cursorParent)(Code)
Set the position at which the next rendered node will be appended
Parameters:
  cursorParent -



setIsolatedRootNode
void setIsolatedRootNode(Node rootElement)(Code)



setRootNode
public void setRootNode(Node rootNode)(Code)

Set the rootNode member variable to the parameter Node.


Parameters:
  rootNode -



startNode
public void startNode(FacesContext facesContext, UIComponent component, Node node) throws IOException(Code)
This method can be used as an alternative to the streamWrite method. When using this method you must also use the endNode method.



stepInto
public void stepInto(UIComponent component)(Code)
Maintain the cursor and cursor such that the next rendered component will be rendered as a child of the parameter component.
Parameters:
  component -



stepOver
public void stepOver()(Code)
Maintain the cursor and cursor position; step to the position where the next sibling should be rendered.



streamWrite
public void streamWrite(FacesContext facesContext, UIComponent component, Node root, Node halter) throws IOException(Code)

Writes the DOM subtree anchored at root to the current ResponseWriter. Serialization is halted at the node halter (writing only the opening tag) and will be resumed from this node on the next call to this function.


Parameters:
  facesContext - current FacesContext
Parameters:
  component - JSF component being rendered
Parameters:
  root - node indicating subtree of DOM to eventuallyserialize
Parameters:
  halter - node upon which to halt serialization on this pass



streamWrite
public void streamWrite(FacesContext facesContext, UIComponent component) throws IOException(Code)

Convenience method for streamWrite(facesContext, component, this.rootNode, null).


Parameters:
  facesContext - current FacesContext
Parameters:
  component - JSF component being rendered



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.