public class XDOM extends Object
<replace-with class="path.to.my.CustomXDOMImpl">
<when-type-is class="com.sencha.gxt.core.client.dom.XDOM.XDOMImpl" />
</replace-with>
DOM
Modifier and Type | Class and Description |
---|---|
static class |
XDOM.XDOMImpl
Actual implementation of any XDOM methods that require the use of fields to track state.
|
Modifier and Type | Field and Description |
---|---|
static SafeStyles |
EMPTY_SAFE_STYLE
An empty safe styles instance.
|
Constructor and Description |
---|
XDOM() |
Modifier and Type | Method and Description |
---|---|
static XElement |
create(SafeHtml html)
Creates a new element from 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 Element |
getActiveElement()
Returns the last focused element.
|
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 final SafeStyles EMPTY_SAFE_STYLE
public static XElement create(SafeHtml 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 Element getActiveElement()
public 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 © 2018. All rights reserved.