Class BasicRenderingInformation
java.lang.Object
ro.sync.exml.workspace.api.node.customizer.BasicRenderingInformation
- Direct Known Subclasses:
RenderingInformation
The rendering information used to display a node in the Outline view, Author bread crumb,
Content Completion popup window, Elements view and DITA Map view.
- Since:
- 13.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the path of the icon used to render a node.Get the text to be rendered for a node.The tooltip text which will appear in the tooltip associated with the node.voidsetIconPath(String iconPath) Set the path of the icon used to render a node.voidsetRenderedText(String renderedText) Set the text to be rendered for a node.voidsetTooltipText(String tooltipText) The tooltip text which will appear in the tooltip associated with the node.
-
Constructor Details
-
BasicRenderingInformation
public BasicRenderingInformation()
-
-
Method Details
-
setRenderedText
Set the text to be rendered for a node. If the rendered text isnullthen the default node rendering will be used.- Parameters:
renderedText- The rendered text, usually the node name. Ifnullthe default text will be used for rendering.
-
setTooltipText
The tooltip text which will appear in the tooltip associated with the node. If the tooltip text isnullthen the default tooltip text will be used for the node.- Parameters:
tooltipText- The tooltip text which will appear in the tooltip associated with the node. Ifnullthe default tooltip text will be used for the node.
-
setIconPath
Set the path of the icon used to render a node. The path can be an icon file path, the string representation of an iconURLor can contain editor variables as defined in theEditorVariablesclass. The editor variables will be expanded at runtime. If the icon path isnullthe default icon will be used for the node.
If the custom used images are located in the same jar file as theXMLNodeRendererCustomizerthen you can use as the return value for this function the following code sequence:
this.getClass().getResource("/images/Icon.gif").toExternalForm();
The previous sequence assumes that Icon.gif icon image is located in the images folder inside your jar file.- Parameters:
iconPath- The path of the icon. Ifnullthe default icon will be used for the node.
-
getRenderedText
Get the text to be rendered for a node.- Returns:
- Returns the rendered text.
-
getTooltipText
The tooltip text which will appear in the tooltip associated with the node.- Returns:
- the tooltip text which will appear in the tooltip associated with the node.
-
getIconPath
Get the path of the icon used to render a node. The path can be an icon file path, the string representation of an iconURLor can contain editor variables as defined in theEditorVariablesclass. The editor variables will be expanded at runtime.- Returns:
- Returns the path of the icon.
-