Class Button
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.Button
-
public class Button extends FormElement
Class representing a Symphony Elements button- Since:
- 03/21/19
- Author:
- lumoura
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_TYPEstatic StringMESSAGEML_TAGstatic StringRESET_TYPE-
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, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description Button(Element parent, FormatEnum format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()voidbuildAttribute(MessageMLParser parser, Node item)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
ACTION_TYPE
public static final String ACTION_TYPE
- See Also:
- Constant Field Values
-
RESET_TYPE
public static final String RESET_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Button
public Button(Element parent, FormatEnum format)
-
-
Method Detail
-
buildAttribute
public void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
validate
public void validate() throws InvalidInputException- Overrides:
validatein classFormElement- Throws:
InvalidInputException
-
-