Constructor and Description |
---|
XDOM() |
Modifier and Type | Method and Description |
---|---|
static XElement |
create(SafeHtml html) |
static XElement |
create(String html)
Creates an element form the given markup.
|
static Element |
createElementNS(String ns,
String tag)
Creates an element of the given name space and tag.
|
static Element |
createTextNode(String text)
Creates a text node from the given text.
|
static 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 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(String autoIdPrefix)
Sets the auto id prefix which is prepended to the auto id counter when
generating auto ids (defaults to 'x-auto').
|
public static XElement create(String html)
html
- the markuppublic static Element createElementNS(String ns, String tag)
ns
- the name space of the elementtag
- the tag of the elementpublic static Element createTextNode(String text)
text
- the text to insert inside the nodepublic static 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 amountpublic static String getUniqueId()
public static int getViewHeight(boolean full)
full
- true to return the document height, false for viewport heightpublic 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 widthpublic static void setAutoIdPrefix(String autoIdPrefix)
autoIdPrefix
- the auto id prefixCopyright © 2012. All Rights Reserved.