- All Known Implementing Classes:
BBCodeHandler.Default
public interface BBCodeHandler
The basic handler interface for the
BBCodeParser that will
receive notifications while processing user input text.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA generic block record.static classBBCodeHandler.Default<T extends javafx.scene.layout.Pane>static final recordGeneric tag record. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(int start, int length) Notifies about characters data that doesn't belong to any tag, i.e.voidNotifies that parsing has finished.voidNotifies about the end of the tag.voidstartDocument(char[] doc) Notifies that parsing has started.voidNotifies about the start of the tag.
-
Method Details
-
startDocument
void startDocument(char[] doc) Notifies that parsing has started.- Parameters:
doc- parser input string
-
endDocument
void endDocument()Notifies that parsing has finished. -
startTag
Notifies about the start of the tag. In case of self-closing tag this also notifies about the end of the tag.- Parameters:
name- The tag name.params- The tag params.start- The tag start position, i.e. the position of open square bracket (not the tag name start).length- The tag length, including closing bracket.
-
endTag
Notifies about the end of the tag. In case of self-closing tag onlystartTag(String, Map, int, int)method is called.- Parameters:
name- The tag name.start- The tag start position, i.e. the position of open square bracket (not the tag name start).length- The tag length, including closing bracket.
-
characters
void characters(int start, int length) Notifies about characters data that doesn't belong to any tag, i.e. leading, intermediate or trailing text.- Parameters:
start- The text start position.length- The text length.
-