Class Card
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Card
-
public class Card extends Element
Class representing a convenience element which has a number of visual elements and which can be opened and closed. Translated to a div element.- Since:
- 3/27/17
- Author:
- lukasz
-
-
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, ID_MAX_LENGTH, MAPPER, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description Card(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
-
Card
public Card(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
-
-