Java Doc for DomHelper.java in  » Ajax » gwtext-2.01 » com » gwtext » client » core » 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 » gwtext 2.01 » com.gwtext.client.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.core.DomHelper

DomHelper
public class DomHelper (Code)
Utility class for working with DOM and/or Templates. It transparently supports using HTML fragments or DOM.

This is an example, where an unordered list with 5 children items is appended to an existing element with id 'my-div':

 
 

DomConfig config = new DomConfig("ul", null, "my-list"); config.addChild(new DomConfig("li", "item0", null, "List Item 0")); config.addChild(new DomConfig("li", "item1", null, "List Item 1")); config.addChild(new DomConfig("li", "item2", null, "List Item 2")); config.addChild(new DomConfig("li", "item3", null, "List Item 3")); config.addChild(new DomConfig("li", "item4", null, "List Item 4"));

Element list = DomHelper.append("my-div", config);





Method Summary
native public static  Elementappend(String parentId, String rawHtml)
     Creates new Dom element(s) and appends them to the parent element.
native public static  Elementappend(String parentId, DomConfig config)
     Creates new Dom element(s) and appends them to the parent element.
native public static  Elementappend(Element parent, String rawHtml)
     Creates new Dom element(s) and appends them to the parent element.
native public static  Elementappend(Element parent, DomConfig config)
     Creates new Dom element(s) and appends them to the parent element.
native public static  Elementappend(Element parent, Element child)
     Creates new Dom element(s) and appends them to the parent element.
native public static  voidapplyStyles(Element element, String styles)
     Applies a style specification to an element.
native public static  TemplatecreateTemplate(DomConfig config)
     Creates a new Template from the Dom config spec.
native public static  ElementinsertAfter(String id, String rawHtml)
     Creates new Dom element(s) and inserts them after the specified element.
native public static  ElementinsertAfter(String id, DomConfig config)
     Creates new Dom element(s) and inserts them after the specified element.
native public static  ElementinsertAfter(Element elem, String rawHtml)
     Creates new Dom element(s) and inserts them after the specified element.
native public static  ElementinsertAfter(Element elem, DomConfig config)
     Creates new Dom element(s) and inserts them after the specified element.
native public static  ElementinsertAfter(Element elem, Element sibling)
     Creates new Dom element and inserts them after the specified element.
native public static  ElementinsertBefore(String id, String rawHtml)
     Creates new Dom element and inserts them before the specified element.
native public static  ElementinsertBefore(String id, DomConfig config)
     Creates new Dom element and inserts them before the specified element.
native public static  ElementinsertBefore(Element elem, String rawHtml)
     Creates new Dom element and inserts them before the specified element.
native public static  ElementinsertBefore(Element elem, DomConfig config)
     Creates new Dom element and inserts them before the specified element.
native public static  ElementinsertBefore(Element elem, Element sibling)
     Creates new Dom element and inserts them before the specified element.
native public static  ElementinsertFirst(String parentId, String rawHtml)
     Creates new Dom element(s) and inserts them as the first child of the parent element.
native public static  ElementinsertFirst(String parentId, DomConfig config)
     Creates new Dom element(s) and inserts them as the first child of the parent element.
native public static  ElementinsertFirst(Element parent, String rawHtml)
     Creates new Dom element(s) and inserts them as the first child of the parent element.
native public static  ElementinsertFirst(Element parent, DomConfig config)
     Creates new Dom element(s) and inserts them as the first child of the parent element.
native public static  ElementinsertFirst(Element parent, Element child)
     Creates new Dom element(s) and inserts them as the first child of the parent element.
native public static  Stringmarkup(DomConfig config)
     Returns the markup for the passed Element config.
native public static  Elementoverwrite(String oldId, String newRawHtml)
     Creates new Dom element(s) and overwrites the contents of the old element with them.
native public static  Elementoverwrite(String oldId, DomConfig config)
     Creates new Dom element(s) and overwrites the contents of the old element with them.
native public static  Elementoverwrite(Element oldElem, String newRawHtml)
     Creates new Dom element(s) and overwrites the contents of the old element with them.
native public static  Elementoverwrite(Element oldElem, DomConfig config)
     Creates new Dom element(s) and overwrites the contents of the old element with them.
native public static  Elementoverwrite(Element oldElem, Element newElem)
     Creates new Dom element(s) and overwrites the contents of the old element with them.



Method Detail
append
native public static Element append(String parentId, String rawHtml)(Code)
Creates new Dom element(s) and appends them to the parent element.
Parameters:
  parentId - the parent element id
Parameters:
  rawHtml - raw html blob the new node



append
native public static Element append(String parentId, DomConfig config)(Code)
Creates new Dom element(s) and appends them to the parent element.
Parameters:
  parentId - the parent element id
Parameters:
  config - child dom config the new node



append
native public static Element append(Element parent, String rawHtml)(Code)
Creates new Dom element(s) and appends them to the parent element.
Parameters:
  parent - the parent element
Parameters:
  rawHtml - raw html blob the new node



append
native public static Element append(Element parent, DomConfig config)(Code)
Creates new Dom element(s) and appends them to the parent element.
Parameters:
  parent - the parent element
Parameters:
  config - child dom config the new node



append
native public static Element append(Element parent, Element child)(Code)
Creates new Dom element(s) and appends them to the parent element.
Parameters:
  parent - the parent element
Parameters:
  child - child element the new node



applyStyles
native public static void applyStyles(Element element, String styles)(Code)
Applies a style specification to an element.
Parameters:
  element - the element to apply styles to
Parameters:
  styles - a style specification string eg "width:100px"



createTemplate
native public static Template createTemplate(DomConfig config)(Code)
Creates a new Template from the Dom config spec.
Parameters:
  config - the dom config the new Template



insertAfter
native public static Element insertAfter(String id, String rawHtml)(Code)
Creates new Dom element(s) and inserts them after the specified element.
Parameters:
  id - the element id
Parameters:
  rawHtml - raw html blob the new node



insertAfter
native public static Element insertAfter(String id, DomConfig config)(Code)
Creates new Dom element(s) and inserts them after the specified element.
Parameters:
  id - the element id
Parameters:
  config - the element dom config spec the new node



insertAfter
native public static Element insertAfter(Element elem, String rawHtml)(Code)
Creates new Dom element(s) and inserts them after the specified element.
Parameters:
  elem - the element
Parameters:
  rawHtml - the raw html blob the new node



insertAfter
native public static Element insertAfter(Element elem, DomConfig config)(Code)
Creates new Dom element(s) and inserts them after the specified element.
Parameters:
  elem - the element
Parameters:
  config - the element dom config spec the new node



insertAfter
native public static Element insertAfter(Element elem, Element sibling)(Code)
Creates new Dom element and inserts them after the specified element.
Parameters:
  elem - the element
Parameters:
  sibling - the sibling element the new node



insertBefore
native public static Element insertBefore(String id, String rawHtml)(Code)
Creates new Dom element and inserts them before the specified element.
Parameters:
  id - the element id
Parameters:
  rawHtml - the raw html blob the new node



insertBefore
native public static Element insertBefore(String id, DomConfig config)(Code)
Creates new Dom element and inserts them before the specified element.
Parameters:
  id - the element id
Parameters:
  config - the dom config object the new node



insertBefore
native public static Element insertBefore(Element elem, String rawHtml)(Code)
Creates new Dom element and inserts them before the specified element.
Parameters:
  elem - the element
Parameters:
  rawHtml - the raw html blob the new node



insertBefore
native public static Element insertBefore(Element elem, DomConfig config)(Code)
Creates new Dom element and inserts them before the specified element.
Parameters:
  elem - the element
Parameters:
  config - the dom config object the new node



insertBefore
native public static Element insertBefore(Element elem, Element sibling)(Code)
Creates new Dom element and inserts them before the specified element.
Parameters:
  elem - the element
Parameters:
  sibling - the sibling element the new node



insertFirst
native public static Element insertFirst(String parentId, String rawHtml)(Code)
Creates new Dom element(s) and inserts them as the first child of the parent element.
Parameters:
  parentId - the parent element id
Parameters:
  rawHtml - raw html blob the new node



insertFirst
native public static Element insertFirst(String parentId, DomConfig config)(Code)
Creates new Dom element(s) and inserts them as the first child of the parent element.
Parameters:
  parentId - the parent element id
Parameters:
  config - the child dom config object the new node



insertFirst
native public static Element insertFirst(Element parent, String rawHtml)(Code)
Creates new Dom element(s) and inserts them as the first child of the parent element.
Parameters:
  parent - the parent element
Parameters:
  rawHtml - raw html blob the new node



insertFirst
native public static Element insertFirst(Element parent, DomConfig config)(Code)
Creates new Dom element(s) and inserts them as the first child of the parent element.
Parameters:
  parent - the parent element
Parameters:
  config - the child dom config object the new node



insertFirst
native public static Element insertFirst(Element parent, Element child)(Code)
Creates new Dom element(s) and inserts them as the first child of the parent element.
Parameters:
  parent - the parent element
Parameters:
  child - the child element the new node



markup
native public static String markup(DomConfig config)(Code)
Returns the markup for the passed Element config.
Parameters:
  config - the element config markup



overwrite
native public static Element overwrite(String oldId, String newRawHtml)(Code)
Creates new Dom element(s) and overwrites the contents of the old element with them.
Parameters:
  oldId - the old element id
Parameters:
  newRawHtml - raw html blob the new node



overwrite
native public static Element overwrite(String oldId, DomConfig config)(Code)
Creates new Dom element(s) and overwrites the contents of the old element with them.
Parameters:
  oldId - the old element id
Parameters:
  config - the dom config object the new node



overwrite
native public static Element overwrite(Element oldElem, String newRawHtml)(Code)
Creates new Dom element(s) and overwrites the contents of the old element with them.
Parameters:
  oldElem - the old element
Parameters:
  newRawHtml - raw html blob the new node



overwrite
native public static Element overwrite(Element oldElem, DomConfig config)(Code)
Creates new Dom element(s) and overwrites the contents of the old element with them.
Parameters:
  oldElem - the old element
Parameters:
  config - the dom config object the new node



overwrite
native public static Element overwrite(Element oldElem, Element newElem)(Code)
Creates new Dom element(s) and overwrites the contents of the old element with them.
Parameters:
  oldElem - the old element
Parameters:
  newElem - the new element the new node



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.