Interface DomElement
- All Superinterfaces:
ValueChangeNotifier
API interface for an
DomEditorValue element.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidadopt(DomElement element) Adopts all values from the given element.@Nullable ElementCompute a difference between this element and the given one.get()Returns root element.getRoot()Returns root node (<DOM>).booleanisEmpty()Returnstrueif this element has no content.voidSets the givenhtml.voidSets the given xml.voidSets root element.toText(boolean asHtml) Returns html (asHtml==true) or plain text (asHtml==false).Methods inherited from interface de.espirit.common.event.ValueChangeNotifier
addChangeListener, removeChangeListener
-
Method Details
-
getRoot
Returns root node (<DOM>).- Returns:
- root node.
- Since:
- 4.2.15
-
get
Returns root element.- Returns:
- root element.
- Since:
- 4.0.17
-
isEmpty
Returnstrueif this element has no content.- Returns:
trueif this element has no content.- Since:
- 4.0.17
-
set
Sets root element.- Parameters:
element- root element.- Since:
- 4.0.17
-
set
Sets the given xml.- Parameters:
xml- to set.- Since:
- 4.0.17
-
toText
@ApiDoc(comment="Returns html (asHtml==true) or plain text (asHtml==false).", since="4.0.17") String toText(boolean asHtml) Returns html (asHtml==true) or plain text (asHtml==false).- Parameters:
asHtml-trueto return html,falseto return plain text.- Returns:
- html (
asHtml==true) or plain text (asHtml==false). - Since:
- 4.0.17
- See Also:
-
parseHtml
Sets the givenhtml.- Parameters:
html- to set.- Since:
- 4.0.17
- See Also:
-
adopt
@ApiDoc(comment="Adopts all values from the given element.", since="4.0.17") void adopt(DomElement element) Adopts all values from the given element.- Parameters:
element- source.- Since:
- 4.0.17
-
diff
@ApiDoc(comment="Compute a difference between this element and the given one.", since="4.0") @Nullable @Nullable Element diff(Element other) Compute a difference between this element and the given one.- Parameters:
other- The element to compare to.- Returns:
- The difference element or null, if equal.
- Since:
- 4.0
-