| org.netbeans.swing.outline.RenderDataProvider
All known Subclasses: org.netbeans.modules.websvc.registry.ui.TypeDataProvider, org.netbeans.modules.websvc.saas.ui.wizards.TypeDataProvider,
RenderDataProvider | public interface RenderDataProvider (Code) | | A class which can provide rendering data for the tree portion an Outline,
such as converting values to text, providing tooltip text and icons.
Makes it possible to provide most of the interesting data that affects
display without needing to provide a custom cell renderer. An Outline
will use its RenderDataProvider to fetch data for all
its columns, so it is possible to affect the display of both property
columns and the tree column via this interface.
author: Tim Boudreau |
getBackground | public Color getBackground(Object o)(Code) | | Get the background color to be used for rendering this node. Return
null if the standard table background or selected color should be used.
|
getDisplayName | public String getDisplayName(Object o)(Code) | | Convert an object in the tree to the string that should be used to
display its node
|
getForeground | public Color getForeground(Object o)(Code) | | Get the foreground color to be used for rendering this node. Return
null if the standard table foreground or selected foreground should be
used.
|
getIcon | public Icon getIcon(Object o)(Code) | | Get an icon to be used for this object. Return null if the look and
feel's default tree folder/leaf icons should be used as appropriate.
|
getTooltipText | public String getTooltipText(Object o)(Code) | | Get a description for this object suitable for use in a tooltip. Return
null if no tooltip is desired.
|
isHtmlDisplayName | public boolean isHtmlDisplayName(Object o)(Code) | | Returns true of the display name for this object should use HTML
rendering (future support for integration of the lightweight HTML
renderer into NetBeans).
|
|
|