public interface TooltipableElement extends SplittableElement
Element.buildAttribute(org.symphonyoss.symphony.messageml.MessageMLParser, org.w3c.dom.Node)
and/or Element.asPresentationML(XmlPrintStream out, MessageMLContext context) without calling super,
it is needed to manage manually TITLE attribute and SplittableElement.splittableAsPresentationML(XmlPrintStream out, MessageMLContext context) method| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_TARGET_ID |
static String |
DATA_TITLE |
static String |
TITLE |
static String |
TOOLTIP_CLASS |
static int |
TOOLTIP_MAX_LENGTH |
static String |
TOOLTIP_TOO_LONG_ERR |
static String |
TOOLTIPABLE_PRESENTATIONML |
PRESENTATIONML_DIV_FLAG| Modifier and Type | Method and Description |
|---|---|
default String |
getPresentationMLTooltipTag() |
default Map<String,String> |
getTooltipAttributes(String id)
Used internally, normally you dont need to override the default method
|
default boolean |
isTooltip() |
static boolean |
isTooltipNode(Node item)
Check if the PresentationML node is a tooltip
|
default void |
validateTooltip()
Validate tooltip max length, if present
|
fillAttributes, fillAttributes, getAttribute, getAttributes, getElementId, getStringAttribute, isSplittable, isSplittableNodeComponent, splittableAsPresentationML, splittableRemove, validateSplittablestatic final String TITLE
static final String DATA_TITLE
static final String DATA_TARGET_ID
static final String TOOLTIP_CLASS
static final int TOOLTIP_MAX_LENGTH
static final String TOOLTIP_TOO_LONG_ERR
static final String TOOLTIPABLE_PRESENTATIONML
default String getPresentationMLTooltipTag()
default Map<String,String> getTooltipAttributes(String id)
id - used to generate the unique element iddefault boolean isTooltip()
static boolean isTooltipNode(Node item)
default void validateTooltip()
throws InvalidInputException
InvalidInputExceptionCopyright © 2020 The Symphony Software Foundation. All rights reserved.