Class ExpandableCard
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.ExpandableCard
-
public class ExpandableCard extends Element
Class representing a convenience element which has a number of visual elements and which can be closed, expanded, cropped. Translated to a div element.- Since:
- 8/7/20
- Author:
- enrico.molino
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEML_TAGstatic StringPRESENTATIONML_CLASS-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, ID_ATTR, MAPPER, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description ExpandableCard(Element parent, FormatEnum format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasPresentationML(XmlPrintStream out, MessageMLContext context)protected voidbuildAttribute(MessageMLParser parser, Node item)StringgetPresentationMLTag()Return the element's PresentationML tag.-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildAll, 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
-
PRESENTATIONML_CLASS
public static final String PRESENTATIONML_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExpandableCard
public ExpandableCard(Element parent, FormatEnum format)
-
-
Method Detail
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
asPresentationML
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
-
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
-
-