Class BasicRenderingInformation

java.lang.Object
ro.sync.exml.workspace.api.node.customizer.BasicRenderingInformation
Direct Known Subclasses:
RenderingInformation

@API(type=EXTENDABLE, src=PUBLIC) public class BasicRenderingInformation extends Object
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 Details

    • BasicRenderingInformation

      public BasicRenderingInformation()
  • Method Details

    • setRenderedText

      public void setRenderedText(String renderedText)
      Set the text to be rendered for a node. If the rendered text is null then the default node rendering will be used.
      Parameters:
      renderedText - The rendered text, usually the node name. If null the default text will be used for rendering.
    • setTooltipText

      public void setTooltipText(String tooltipText)
      The tooltip text which will appear in the tooltip associated with the node. If the tooltip text is null then 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. If null the default tooltip text will be used for the node.
    • setIconPath

      public void setIconPath(String iconPath)
      Set the path of the icon used to render a node. The path can be an icon file path, the string representation of an icon URL or can contain editor variables as defined in the EditorVariables class. The editor variables will be expanded at runtime. If the icon path is null the default icon will be used for the node.

      If the custom used images are located in the same jar file as the XMLNodeRendererCustomizer then 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. If null the default icon will be used for the node.
    • getRenderedText

      public String getRenderedText()
      Get the text to be rendered for a node.
      Returns:
      Returns the rendered text.
    • getTooltipText

      public String 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

      public String 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 icon URL or can contain editor variables as defined in the EditorVariables class. The editor variables will be expanded at runtime.
      Returns:
      Returns the path of the icon.