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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append(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:AttributedTextSink
Append a string with specified formatting.- Specified by:
append
in interfaceAttributedTextSink<TextAttributeSet>
- Parameters:
s
- appended stringattrs
- format attributes
-
toHTML
Get the generated HTML.- Returns:
- HTML string
-