public class Checkbox extends FormElement
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGEML_TAG |
static String |
PRESENTATIONML_DIV_CLASS |
static String |
PRESENTATIONML_INPUT_TYPE |
INPUT_TAG, NAME_ATTR, TYPE_ATTRCLASS_ATTR, format, STYLE_ATTR| Constructor and Description |
|---|
Checkbox(Element parent,
FormatEnum messageFormat) |
| Modifier and Type | Method and Description |
|---|---|
org.commonmark.node.Node |
asMarkdown()
Return Markdown representation of the element as
Node. |
void |
asPresentationML(XmlPrintStream out)
Print a PresentationML representation of the element and its children to the provided PrintStream.
|
void |
buildAll(MessageMLParser context,
Element element)
Process a DOM element, descending into its children, and construct the output MessageML tree.
|
protected void |
buildAttribute(Node item)
Parse a DOM attribute into MessageML element properties.
|
void |
validate()
Check the syntax and contents of the element.
|
addChild, asText, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, hasExactNumberOfChildren, hasIdAttribute, sizepublic static final String MESSAGEML_TAG
public static final String PRESENTATIONML_INPUT_TYPE
public static final String PRESENTATIONML_DIV_CLASS
public Checkbox(Element parent, FormatEnum messageFormat)
public void buildAll(MessageMLParser context, Element element) throws InvalidInputException, ProcessingException
ElementbuildAll in class ElementInvalidInputExceptionProcessingExceptionpublic void validate()
throws InvalidInputException
Elementvalidate in class FormElementInvalidInputExceptionprotected void buildAttribute(Node item) throws InvalidInputException
ElementInvalidInputExceptionpublic void asPresentationML(XmlPrintStream out)
Elementpublic org.commonmark.node.Node asMarkdown()
ElementNode.Copyright © 2020 The Symphony Software Foundation. All rights reserved.