Class DateSelector
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.DateSelector
-
public class DateSelector extends FormElement
Class representing a date-selector element inside a Symphony Elements form.- Since:
- 06/11/2019
- Author:
- Cristiano Faustino
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEML_TAG-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.FormElement
INPUT_TAG, NAME_ATTR, TYPE_ATTR
-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
format, ID_ATTR, MAPPER, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description DateSelector(Element parent, FormatEnum messageFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()voidasPresentationML(XmlPrintStream out, MessageMLContext context)voidbuildAll(MessageMLParser parser, Element element)Process a DOM element, descending into its children, and construct the output MessageML tree.protected voidbuildAttribute(MessageMLParser parser, Node item)StringgetPresentationMLTag()Return the element's PresentationML tag.voidupdateBiContext(BiContext context)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildNode, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateSelector
public DateSelector(Element parent, FormatEnum messageFormat)
-
-
Method Detail
-
buildAll
public void buildAll(MessageMLParser parser, Element element) throws InvalidInputException, ProcessingException
Description copied from class:ElementProcess a DOM element, descending into its children, and construct the output MessageML tree.- Overrides:
buildAllin classElement- Throws:
InvalidInputExceptionProcessingException
-
validate
public void validate() throws InvalidInputException- Overrides:
validatein classFormElement- Throws:
InvalidInputException
-
asPresentationML
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
getPresentationMLTag
public String getPresentationMLTag()
Description copied from class:ElementReturn the element's PresentationML tag. By default is equals to MessageML tag, override when needed- Overrides:
getPresentationMLTagin classElement
-
updateBiContext
public void updateBiContext(BiContext context)
-
-