Class RoomSelector
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.RoomSelector
-
- All Implemented Interfaces:
LabelableElement,SplittableElement,TooltipableElement
public class RoomSelector extends FormElement implements LabelableElement, TooltipableElement
Class representing a room selector inside a Symphony Elements form.
-
-
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, ID_MAX_LENGTH, STYLE_ATTR
-
Fields inherited from interface org.symphonyoss.symphony.messageml.elements.LabelableElement
LABEL, LABEL_FOR, LABEL_MAX_LENGTH, LABEL_TOO_LONG_ERR
-
Fields inherited from interface org.symphonyoss.symphony.messageml.elements.SplittableElement
PRESENTATIONML_DIV_FLAG
-
Fields inherited from interface org.symphonyoss.symphony.messageml.elements.TooltipableElement
DATA_TARGET_ID, DATA_TITLE, TITLE, TOOLTIP_CLASS, TOOLTIP_MAX_LENGTH, TOOLTIP_TOO_LONG_ERR, TOOLTIPABLE_PRESENTATIONML
-
-
Constructor Summary
Constructors Constructor Description RoomSelector(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)StringgetElementId()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, checkIntegerAttribute, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.symphonyoss.symphony.messageml.elements.LabelableElement
getLabelAttribute, getPresentationMLLabelTag, isLabel, isLabelNode, validateLabel
-
Methods inherited from interface org.symphonyoss.symphony.messageml.elements.SplittableElement
fillAttributes, fillAttributes, getAttribute, getAttributes, getStringAttribute, isSplittable, isSplittableNodeComponent, splittableAsPresentationML, splittableRemove, validateSplittable
-
Methods inherited from interface org.symphonyoss.symphony.messageml.elements.TooltipableElement
getPresentationMLTooltipTag, getTooltipAttributes, isTooltip, validateTooltip
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RoomSelector
public RoomSelector(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
-
getElementId
public String getElementId()
- Specified by:
getElementIdin interfaceSplittableElement- Returns:
- the name used to build unique element id
-
updateBiContext
public void updateBiContext(BiContext context)
-
-