Class HTMLBuilder
java.lang.Object
games.stendhal.client.gui.textformat.HTMLBuilder
- All Implemented Interfaces:
AttributedTextSink<TextAttributeSet>
Text sink for generating HTML snippets. The used
TextAttributeSet
should have HTML tag names as the values of each attribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(String s, TextAttributeSet attrs) Append a string with specified formatting.toHTML()Get the generated HTML.
-
Constructor Details
-
HTMLBuilder
public HTMLBuilder()
-
-
Method Details
-
append
Description copied from interface:AttributedTextSinkAppend a string with specified formatting.- Specified by:
appendin interfaceAttributedTextSink<TextAttributeSet>- Parameters:
s- appended stringattrs- format attributes
-
toHTML
Get the generated HTML.- Returns:
- HTML string
-