Class ProjectRendererCustomizer
java.lang.Object
ro.sync.exml.workspace.api.standalone.project.ProjectRendererCustomizer
Base class which can be extended to customize the rendering of the files from
the Project view in the stand-alone Oxygen installation.
- Since:
- 20
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecorationIcon
(File projectFile) Get the decoration icon for a certain file shown in the Project view.Get the custom name for a certain file shown in the Project view.getTooltip
(File projectFile, String defaultTooltip) Get the custom tooltip for a certain file shown in the Project view.
-
Constructor Details
-
ProjectRendererCustomizer
public ProjectRendererCustomizer()
-
-
Method Details
-
getDecorationIcon
Get the decoration icon for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.- Parameters:
projectFile
- The file in the Project view.- Returns:
- the decoration icon or
null
if the default should be used instead. The decoration icon should be about 10x10 pixels.
-
getTooltip
Get the custom tooltip for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.- Parameters:
projectFile
- The file in the Project view.defaultTooltip
- The default tooltip.- Returns:
- the custom tooltip for a certain File shown in the Project view or
null
if the default should be used instead.
-
getName
Get the custom name for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.- Parameters:
projectFile
- The file in the Project view.defaultName
- The default name.- Returns:
- the custom name for a certain File shown in the Project view or
null
if the default should be used instead.
-