|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.dom.DomHelper
public class DomHelper
Utility class for creating elements from HTML fragments.
| Constructor Summary | |
|---|---|
DomHelper()
|
|
| Method Summary | |
|---|---|
static Element |
append(Element elem,
java.lang.String html)
Creates new DOM element(s) and appends them to el. |
static Element |
insertAfter(Element elem,
java.lang.String html)
Creates new DOM element(s) and inserts them after el. |
static Element |
insertBefore(Element elem,
java.lang.String html)
Creates new DOM element(s) and inserts them before el. |
static Element |
insertFirst(Element elem,
java.lang.String html)
Creates new DOM element(s) and inserts them as the first child of el. |
static Element |
insertHtml(java.lang.String where,
Element el,
java.lang.String html)
Inserts an HTML fragment into the DOM. |
static Element |
overwrite(Element elem,
java.lang.String html)
Creates new DOM element(s) and overwrites the contents of el with them. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomHelper()
| Method Detail |
|---|
public static Element append(Element elem,
java.lang.String html)
elem - the context elementhtml - raw HTML fragment
public static Element insertAfter(Element elem,
java.lang.String html)
elem - the context elementhtml - raw HTML fragment
public static Element insertBefore(Element elem,
java.lang.String html)
elem - the context elementhtml - raw HTML fragment
public static Element insertFirst(Element elem,
java.lang.String html)
elem - the context elementhtml - raw HTML fragment
public static Element insertHtml(java.lang.String where,
Element el,
java.lang.String html)
where - where to insert the html in relation to el - beforeBegin,
afterBegin, beforeEnd, afterEnd.el - the context elementhtml - the HTML fragment
public static Element overwrite(Element elem,
java.lang.String html)
elem - the context elementhtml - raw HTML fragment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||