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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of the receiver using the supplied label provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFontsAndColors(TableItem control) Apply the fonts and colors to the control if required.voidapplyFontsAndColors(TreeItem control) Apply the fonts and colors to the control if required.voidsetFontsAndColors(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 Details
-
ColorAndFontCollectorWithProviders
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:
-
-
Method Details
-
setFontsAndColors
Description copied from class:StructuredViewer.ColorAndFontCollectorSet the initial fonts and colors for the element from the content providers.- Overrides:
setFontsAndColorsin classStructuredViewer.ColorAndFontCollector- Parameters:
element- Object
-
applyFontsAndColors
Description copied from class:StructuredViewer.ColorAndFontCollectorApply the fonts and colors to the control if required.- Overrides:
applyFontsAndColorsin classStructuredViewer.ColorAndFontCollector- Parameters:
control- control to apply font and color on
-
applyFontsAndColors
Description copied from class:StructuredViewer.ColorAndFontCollectorApply the fonts and colors to the control if required.- Overrides:
applyFontsAndColorsin classStructuredViewer.ColorAndFontCollector- Parameters:
control- control to apply font and color on
-