public interface DomElement extends ValueChangeNotifier
DomEditorValue
element.Modifier and Type | Method and Description |
---|---|
void |
adopt(DomElement element)
Adopts all values from the given element.
|
Element |
diff(Element other)
Compute a difference between this element and the given one.
|
Element |
get()
Returns root element.
|
DefaultDomNode |
getRoot()
Returns root node (
<DOM> ). |
boolean |
isEmpty()
Returns
true if this element has no content. |
void |
parseHtml(String html)
Sets the given
html . |
void |
set(Element element)
Sets root element.
|
void |
set(String xml)
Sets the given xml.
|
String |
toText(boolean asHtml)
Returns html (
asHtml==true ) or plain text (asHtml==false ). |
addChangeListener, removeChangeListener
DefaultDomNode getRoot()
<DOM>
).Element get()
boolean isEmpty()
true
if this element has no content.true
if this element has no content.void set(Element element)
element
- root element.void set(String xml)
xml
- to set.String toText(boolean asHtml)
asHtml==true
) or plain text (asHtml==false
).asHtml
- true
to return html, false
to return plain text.asHtml==true
) or plain text (asHtml==false
).parseHtml(String)
void parseHtml(String html)
html
.html
- to set.toText(boolean)
void adopt(DomElement element)
element
- source.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408