Package dev.gmitch215.bytebox.html
Interface Comment
- All Superinterfaces:
org.teavm.jso.JSObject
public interface Comment
extends org.teavm.jso.JSObject
An HTML comment.
- Since:
- 1.0.3
-
Method Summary
Modifier and TypeMethodDescriptionInserts text after the comment.after(String content, ContentOptions options) Inserts content after the comment.Inserts text before the comment.before(String content, ContentOptions options) Inserts content before the comment.getText()Returns the text between<!--and-->.booleanReturns whether an earlier handler already removed or replaced this comment.remove()Removes the comment.Replaces the comment by text.replace(String content, ContentOptions options) Replaces the comment by other content.voidChanges the comment's text.Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
getText
String getText()Returns the text between<!--and-->.- Returns:
- the text between
<!--and-->
-
setText
Changes the comment's text.- Parameters:
text- the new text
-
isRemoved
boolean isRemoved()Returns whether an earlier handler already removed or replaced this comment.- Returns:
- whether an earlier handler already removed or replaced this comment
-
before
Inserts text before the comment.- Parameters:
content- the text, escaped- Returns:
- this comment
-
before
Inserts content before the comment.- Parameters:
content- the contentoptions- how to read it- Returns:
- this comment
-
after
Inserts text after the comment.- Parameters:
content- the text, escaped- Returns:
- this comment
-
after
Inserts content after the comment.- Parameters:
content- the contentoptions- how to read it- Returns:
- this comment
-
replace
Replaces the comment by text.- Parameters:
content- the text, escaped- Returns:
- this comment
-
replace
Replaces the comment by other content.- Parameters:
content- the contentoptions- how to read it- Returns:
- this comment
-
remove
Comment remove()Removes the comment.- Returns:
- this comment
-