Class Radio
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.GroupedElement
-
- org.symphonyoss.symphony.messageml.elements.Radio
-
- All Implemented Interfaces:
LabelableElement,SplittableElement
public class Radio extends GroupedElement implements LabelableElement
Class representing Radio Buttons - Symphony Elements.- Since:
- 06/13/19
- Author:
- Pedro Sanchez
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEML_TAGstatic StringPRESENTATIONML_DIV_CLASSstatic StringPRESENTATIONML_INPUT_TYPE-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.GroupedElement
CHECKED_ATTR, FOR_ATTR, PRESENTATIONML_LABEL_TAG, VALUE_ATTR
-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.FormElement
INPUT_TAG, 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
-
-
Constructor Summary
Constructors Constructor Description Radio(Element parent, FormatEnum messageFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()protected voidbuildAttribute(MessageMLParser parser, Node item)StringgetElementId()protected StringgetPresentationMLDivClass()protected StringgetPresentationMLInputType()voidupdateBiContext(BiContext context)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.GroupedElement
asPresentationML, buildAll, buildElementAttrFromInputTag, buildElementFromGroupDiv, buildGroupedElementInputAttributes
-
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, 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
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
PRESENTATIONML_INPUT_TYPE
public static final String PRESENTATIONML_INPUT_TYPE
- See Also:
- Constant Field Values
-
PRESENTATIONML_DIV_CLASS
public static final String PRESENTATIONML_DIV_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Radio
public Radio(Element parent, FormatEnum messageFormat)
-
-
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
-
getPresentationMLInputType
protected String getPresentationMLInputType()
- Specified by:
getPresentationMLInputTypein classGroupedElement
-
getPresentationMLDivClass
protected String getPresentationMLDivClass()
- Specified by:
getPresentationMLDivClassin classGroupedElement
-
getElementId
public String getElementId()
- Specified by:
getElementIdin interfaceSplittableElement- Returns:
- the name used to build unique element id
-
updateBiContext
public void updateBiContext(BiContext context)
-
-