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
@ApiDoc(comment="Returns root node (DOM)", since="4.2.15") DefaultDomNode getRoot()
<DOM>
).@ApiDoc(comment="Returns root element.", since="4.0.17") Element get()
@ApiDoc(comment="Returns true if this element has no content.", since="4.0.17") boolean isEmpty()
true
if this element has no content.true
if this element has no content.@ApiDoc(comment="Sets root element.", since="4.0.17") void set(Element element)
element
- root element.@ApiDoc(comment="Sets the given xml.", since="4.0.17") void set(String xml)
xml
- to set.@ApiDoc(comment="Returns html (asHtml==true) or plain text (asHtml==false).", since="4.0.17") 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)
@ApiDoc(comment="Sets the given html.", since="4.0.17") void parseHtml(String html)
html
.html
- to set.toText(boolean)
@ApiDoc(comment="Adopts all values from the given element.", since="4.0.17") void adopt(DomElement element)
element
- source.@ApiDoc(comment="Compute a difference between this element and the given one.", since="4.0") @Nullable Element diff(Element other)
other
- The element to compare to.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210