|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.dom.XDOM
public class XDOM
Provides additional static methods that allow you to manipulate the browser's Document Object Model (DOM).
DOM| Field Summary | |
|---|---|
static SafeStyles |
EMPTY_SAFE_STYLE
An empty safe styles instance. |
| Constructor Summary | |
|---|---|
XDOM()
|
|
| Method Summary | |
|---|---|
static XElement |
create(SafeHtml html)
Creates a new element from the given markup. |
static XElement |
create(java.lang.String html)
Creates an element form the given markup. |
static Element |
createElementNS(java.lang.String ns,
java.lang.String tag)
Creates an element of the given name space and tag. |
static Element |
createTextNode(java.lang.String text)
Creates a text node from the given text. |
static java.lang.String |
getAutoIdPrefix()
Returns the auto id prefix. |
static int |
getBodyScrollLeft()
Returns the body elements horizontal scroll. |
static int |
getBodyScrollTop()
Return the body elements vertical scroll. |
static int |
getDocumentHeight()
Returns the document's height. |
static int |
getDocumentWidth()
Returns the document width. |
static Element |
getHead()
Returns the HTML head element. |
static int |
getScrollBarWidth()
Returns the width of the scroll bar. |
static int |
getTopZIndex()
Increments and returns the top z-index value. |
static int |
getTopZIndex(int i)
Increments and returns the top z-index value. |
static java.lang.String |
getUniqueId()
Returns an unique id. |
static int |
getViewHeight(boolean full)
Returns the view height. |
static int |
getViewportHeight()
Returns the viewport height. |
static Size |
getViewportSize()
Returns the viewports size. |
static int |
getViewportWidth()
Returns the viewport width. |
static int |
getViewWidth(boolean full)
Returns the view width. |
static void |
setAutoIdPrefix(java.lang.String autoIdPrefix)
Sets the auto id prefix which is prepended to the auto id counter when generating auto ids (defaults to 'x-auto'). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SafeStyles EMPTY_SAFE_STYLE
| Constructor Detail |
|---|
public XDOM()
| Method Detail |
|---|
public static XElement create(SafeHtml html)
html - the markup
public static XElement create(java.lang.String html)
html - the markup
public static Element createElementNS(java.lang.String ns,
java.lang.String tag)
ns - the name space of the elementtag - the tag of the element
public static Element createTextNode(java.lang.String text)
text - the text to insert inside the node
public static java.lang.String getAutoIdPrefix()
public static int getBodyScrollLeft()
public static int getBodyScrollTop()
public static int getDocumentHeight()
public static int getDocumentWidth()
public static Element getHead()
public static int getScrollBarWidth()
public static int getTopZIndex()
public static int getTopZIndex(int i)
i - the increment amount
public static java.lang.String getUniqueId()
public static int getViewHeight(boolean full)
full - true to return the document height, false for viewport height
public static int getViewportHeight()
public static Size getViewportSize()
public static int getViewportWidth()
public static int getViewWidth(boolean full)
full - true to return the document width, false for viewport width
public static void setAutoIdPrefix(java.lang.String autoIdPrefix)
autoIdPrefix - the auto id prefix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||