Class Select
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.Select
-
- All Implemented Interfaces:
LabelableElement,SplittableElement,TooltipableElement
public class Select extends FormElement implements LabelableElement, TooltipableElement
This class represents the Symphony Element Dialog which is represented with tag name "select" (drop down menu). The messageML representation of the select element can contain the following attributes:- name (required) -> to identify this element
- required -> true/false, to enforce a non empty option to be selected
- data-placeholder -> string, text displayed in the dropdown menu before an option is selected
- title -> string, the description that will be displayed when clicking the tooltip icon
- label -> string, definition of the label that will be displayed on top of the Masked Text Field Element
- multiple -> true/false, to allow for multiple options to be selected
- min -> integer, minimum number of options to select if multiple=true
- max -> integer, maximum number of options to select if multiple=true
- option (required) -> the possible options to select
Option
-
-
Field Summary
Fields Modifier and Type Field Description static StringELEMENT_IDstatic 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
CLASS_ATTR, format, ID_ATTR, ID_MAX_LENGTH, MAPPER, 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()protected voidbuildAttribute(MessageMLParser parser, Node item)StringgetElementId()voidupdateBiContext(BiContext context)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildAll, buildNode, checkIntegerAttribute, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, 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
-
ELEMENT_ID
public static final String ELEMENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Select
public Select(Element parent)
-
-
Method Detail
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
validate
public void validate() throws InvalidInputException- Overrides:
validatein classFormElement- Throws:
InvalidInputException
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
getElementId
public String getElementId()
- Specified by:
getElementIdin interfaceSplittableElement- Returns:
- the name used to build unique element id
-
updateBiContext
public void updateBiContext(BiContext context)
-
-