Interface DomElement
- All Superinterfaces:
ValueChangeNotifier
API interface for an
DomEditorValue
element.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adopt
(DomElement element) Adopts all values from the given element.@Nullable Element
Compute a difference between this element and the given one.get()
Returns root element.getRoot()
Returns root node (<DOM>
).boolean
isEmpty()
Returnstrue
if this element has no content.void
Sets the givenhtml
.void
Sets the given xml.void
Sets 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
Returnstrue
if this element has no content.- Returns:
true
if 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
-true
to return html,false
to 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
-