Class TooltipInformation
java.lang.Object
ro.sync.exml.workspace.api.editor.page.author.tooltip.TooltipInformation
Information about the tooltip.
- Since:
- 18
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The tooltip describes information when hovering callouts.static final String
Hovering over comment change tracking.static final String
Tooltip computed when hovering over an error node.static final String
Tooltip computed when hovering form controls.static final String
Tooltip computed when hovering over an image.static final String
Tooltip computed when hovering a link.static final String
Tooltip computed when an element with profiling attributes is hovered.static final String
Tooltip computed by looking in the associated schema for annotations on that particular element.static final String
Validation error. -
Constructor Summary
ConstructorsConstructorDescriptionTooltipInformation
(String description, AuthorNode hoveredNode, String tooltipOriginInformation, int mouseX, int mouseY) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the current description which will be used for the tooltip.Get information about the originator for the tooltip (for example if it is given by hovering an error message or by hovering an image or so on).Get the hovered node, can benull
.int
Get mouse X coordinatesint
Get mouse Y coordinatesvoid
setDescription
(String description) Set a description to be used on the tooltip.
-
Field Details
-
ORIGIN_CALLOUTS
The tooltip describes information when hovering callouts.- See Also:
-
ORIGIN_FORM_CONTROLS
Tooltip computed when hovering form controls.- See Also:
-
ORIGIN_LINK
Tooltip computed when hovering a link.- See Also:
-
ORIGIN_PROFILING_CONDITIONS
Tooltip computed when an element with profiling attributes is hovered.- See Also:
-
ORIGIN_SCHEMA_DESCRIPTION
Tooltip computed by looking in the associated schema for annotations on that particular element.- See Also:
-
ORIGIN_IMAGE
Tooltip computed when hovering over an image.- See Also:
-
ORIGIN_ERROR_NODE
Tooltip computed when hovering over an error node.- See Also:
-
ORIGIN_VALIDATION_ERROR
Validation error.- See Also:
-
ORIGIN_CHANGE_MARKERS
Hovering over comment change tracking.- See Also:
-
-
Constructor Details
-
TooltipInformation
public TooltipInformation(String description, AuthorNode hoveredNode, String tooltipOriginInformation, int mouseX, int mouseY) Constructor.- Parameters:
description
- Original tooltip description. Can benull
hoveredNode
- The hovered node. Can benull
tooltipOriginInformation
- Details about where the hovered error came from. Can benull
mouseX
- Mouse X coordinate.mouseY
- Mouse Y coordinate.
-
-
Method Details
-
getDescription
Get the current description which will be used for the tooltip.- Returns:
- Returns the description which will be displayed for the tooltip.
-
setDescription
Set a description to be used on the tooltip. The description can also be in HTML format.- Parameters:
description
- The description.
-
getMouseX
public int getMouseX()Get mouse X coordinates- Returns:
- Returns the mouse X coordinates.
-
getMouseY
public int getMouseY()Get mouse Y coordinates- Returns:
- Returns the mouse Y coordinates.
-
getHoveredNode
Get the hovered node, can benull
.- Returns:
- Returns the hovered node, can be
null
.
-
getHoveredErrorOriginInformation
Get information about the originator for the tooltip (for example if it is given by hovering an error message or by hovering an image or so on). Can benull
.- Returns:
- Returns information about the originator for the tooltip.
-