Package org.eclipse.jface.viewers
Class StructuredViewer.ColorAndFontCollectorWithProviders
- java.lang.Object
-
- org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
-
- org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollectorWithProviders
-
- Enclosing class:
- StructuredViewer
protected class StructuredViewer.ColorAndFontCollectorWithProviders extends StructuredViewer.ColorAndFontCollector
The ColorAndFontCollector is a helper class for viewers that have color and font support ad optionally decorators.- See Also:
IColorDecorator
,IFontDecorator
,IColorProvider
,IFontProvider
,IDecoration
-
-
Constructor Summary
Constructors Constructor Description ColorAndFontCollectorWithProviders(IBaseLabelProvider provider)
Create a new instance of the receiver using the supplied label provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFontsAndColors(TableItem control)
Apply the fonts and colors to the control if required.void
applyFontsAndColors(TreeItem control)
Apply the fonts and colors to the control if required.void
setFontsAndColors(Object element)
Set the initial fonts and colors for the element from the content providers.-
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
clear, setBackground, setFont, setForeground, setUsedDecorators
-
-
-
-
Constructor Detail
-
ColorAndFontCollectorWithProviders
public ColorAndFontCollectorWithProviders(IBaseLabelProvider provider)
Create a new instance of the receiver using the supplied label provider. If it is an IColorProvider or IFontProvider set these values up.- Parameters:
provider
- IBaseLabelProvider- See Also:
IColorProvider
,IFontProvider
-
-
Method Detail
-
setFontsAndColors
public void setFontsAndColors(Object element)
Description copied from class:StructuredViewer.ColorAndFontCollector
Set the initial fonts and colors for the element from the content providers.- Overrides:
setFontsAndColors
in classStructuredViewer.ColorAndFontCollector
- Parameters:
element
- Object
-
applyFontsAndColors
public void applyFontsAndColors(TableItem control)
Description copied from class:StructuredViewer.ColorAndFontCollector
Apply the fonts and colors to the control if required.- Overrides:
applyFontsAndColors
in classStructuredViewer.ColorAndFontCollector
- Parameters:
control
- control to apply font and color on
-
applyFontsAndColors
public void applyFontsAndColors(TreeItem control)
Description copied from class:StructuredViewer.ColorAndFontCollector
Apply the fonts and colors to the control if required.- Overrides:
applyFontsAndColors
in classStructuredViewer.ColorAndFontCollector
- Parameters:
control
- control to apply font and color on
-
-