| Package | Description |
|---|---|
| org.xwiki.gwt.dom.client |
| Modifier and Type | Method and Description |
|---|---|
static Element |
Element.as(com.google.gwt.dom.client.Node node)
Casts a
Node to an instance of this type. |
Element |
Element.expandInnerMetaData()
Expands inner elements with meta data.
|
Element |
Attribute.getOwnerElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
DOMUtils.ensureBlockIsEditable(Element block)
Ensures the given block-level element can be edited in design mode.
|
void |
Document.fireInnerHTMLChange(Element element)
Notify all listeners of the change to the given element's
innerHTML property. |
String |
DOMUtils.getAttribute(Element element,
String name)
Returns the value of the named attribute of the specified element.
|
com.google.gwt.core.client.JsArrayString |
DOMUtils.getAttributeNames(Element element) |
String |
DOMUtils.getComputedStyleProperty(Element element,
String propertyName)
Returns the value of the specified CSS property for the given element as it is computed by the browser before it
displays that element.
|
String |
DOMUtils.getInnerText(Element element)
We need our own implementation because the one provided by GWT includes commented text in the output.
|
boolean |
DOMUtils.hasAttribute(Element element,
String attributeName) |
boolean |
DOMUtils.hasAttributes(Element element) |
void |
InnerHTMLListener.onInnerHTMLChange(Element element)
Called whenever the
innerHTML property, of an element within the document this listener has been
registered to, changes. |
void |
DOMUtils.removeAttribute(Element element,
String attributeName)
Removes an attribute by name.
|
void |
DOMUtils.removeProperty(Element element,
String propertyName)
Removes a property from an element.
|
void |
DOMUtils.scrollIntoView(Element element)
Makes sure that the given DOM element is visible by scrolling it into view.
|
void |
DOMUtils.setAttribute(Element element,
String name,
String value)
Sets the value of the specified attribute for the given element.
|
void |
DOMUtils.setInnerHTML(Element element,
String html)
Helps setting the inner HTML for an element, in a cross-browser manner, because IE seems to trim leading comments
in the inner HTML.
|
Copyright © 2004–2015 XWiki. All rights reserved.