public class XhtmlBuffer extends XmlBuffer implements XhtmlFragment
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static String[] |
XHTML_EMPTY_TAG_ALLOWED_LIST |
allowedEmptyTags, checkWellFormed, DEFAULT_EMPTY_TAG_ALLOWED_LIST, state, tagStack, writer
Constructor and Description |
---|
XhtmlBuffer() |
XhtmlBuffer(Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
closeFormElement() |
String |
escape(String s) |
void |
openFormElement(String id,
String method,
String action,
String htmlClass) |
void |
toXhtml(XhtmlBuffer xb) |
void |
writeAnchor(String href,
String text) |
void |
writeAnchor(String href,
String text,
String classStr,
String title) |
void |
writeBr() |
void |
writeCaption(String text) |
void |
writeDoctype() |
void |
writeH1(String title) |
void |
writeH2(String title) |
void |
writeHr() |
void |
writeImage(String src,
String alt,
String title,
String id,
String htmlClass) |
void |
writeInputCheckbox(String id,
String name,
String value,
boolean checked) |
void |
writeInputCheckbox(String id,
String name,
String value,
boolean checked,
boolean disabed,
String cssClass) |
void |
writeInputCheckbox(String id,
String name,
String value,
boolean checked,
boolean disabed,
String cssClass,
String title) |
void |
writeInputFile(String id,
String name,
boolean disabled) |
void |
writeInputFile(String id,
String name,
String value,
boolean disabled) |
void |
writeInputHidden(String name,
String value) |
void |
writeInputHidden(String id,
String name,
String value) |
void |
writeInputNumber(String id,
String name,
String value,
String placeholder,
String htmlClass,
Integer size,
Integer maxLength,
BigDecimal maxValue,
BigDecimal minValue,
Integer step) |
void |
writeInputRadio(String id,
String name,
String value,
boolean checked) |
void |
writeInputRadio(String id,
String name,
String value,
boolean checked,
boolean disabled) |
void |
writeInputRadio(String id,
String name,
String value,
boolean checked,
boolean disabled,
String onClickEvent) |
void |
writeInputSubmit(String name,
String value,
String onSubmit) |
void |
writeInputText(String id,
String name,
String value,
String htmlClass,
Integer size,
Integer maxLength) |
void |
writeInputText(String id,
String name,
String value,
String placeholder,
String htmlClass,
Integer size,
Integer maxLength) |
void |
writeJavaScript(String script) |
void |
writeLabel(String text,
String forId,
String htmlClass) |
void |
writeLegend(String text,
String htmlClass) |
void |
writeLink(String rel,
String type,
String href) |
void |
writeNbsp() |
void |
writeOption(String value,
boolean selected,
String text) |
void |
writeParagraph(String value) |
void |
writeStyle(String body) |
addAttribute, closeElement, getAllowedEmptyTags, getXml, openElement, setAllowedEmptyTags, toString, write, write, writeDoctype, writeNoHtmlEscape, writeXmlHeader
public static final String copyright
public static String[] XHTML_EMPTY_TAG_ALLOWED_LIST
public XhtmlBuffer()
public XhtmlBuffer(Writer writer)
public void writeNbsp()
public void writeCaption(String text)
public void writeBr()
public void writeDoctype()
public void writeH1(String title)
public void writeH2(String title)
public void writeHr()
public void writeInputCheckbox(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked)
public void writeInputCheckbox(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked, boolean disabed, @Nullable String cssClass)
public void writeInputCheckbox(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked, boolean disabed, @Nullable String cssClass, @Nullable String title)
public void writeInputRadio(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked)
public void writeInputRadio(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked, boolean disabled)
public void writeInputRadio(@Nullable String id, @Nullable String name, @Nullable String value, boolean checked, boolean disabled, @Nullable String onClickEvent)
public void writeInputText(@Nullable String id, @Nullable String name, String value, String htmlClass, @Nullable Integer size, @Nullable Integer maxLength)
public void writeInputText(@Nullable String id, @Nullable String name, String value, @Nullable String placeholder, String htmlClass, @Nullable Integer size, @Nullable Integer maxLength)
public void writeInputNumber(@Nullable String id, @Nullable String name, String value, @Nullable String placeholder, String htmlClass, @Nullable Integer size, @Nullable Integer maxLength, @Nullable BigDecimal maxValue, @Nullable BigDecimal minValue, @Nullable Integer step)
public void writeParagraph(String value)
public void writeJavaScript(String script)
public void writeImage(String src, String alt, String title, String id, String htmlClass)
public void writeStyle(String body)
public void openFormElement(String id, String method, String action, String htmlClass)
public void closeFormElement()
public void toXhtml(@NotNull XhtmlBuffer xb)
toXhtml
in interface XhtmlFragment