Class ComboBoxFilterIconPainter
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
- org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
-
- org.eclipse.nebula.widgets.nattable.filterrow.combobox.ComboBoxFilterIconPainter
-
- All Implemented Interfaces:
ICellPainter
public class ComboBoxFilterIconPainter extends ImagePainter
ImagePainter
that is responsible for painting the icon into the filter row cells that are configured to show Excel like filter comboboxes. It will handle 2 different icons:- removeFilterImage - Image that is rendered if a filter is applied for that cell.
- comboImage - Image that is rendered if no filter is applied for that cell
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
calculateByHeight, calculateByWidth
-
-
Constructor Summary
Constructors Constructor Description ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider)
ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider, org.eclipse.swt.graphics.Image removeFilterImage, org.eclipse.swt.graphics.Image comboImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Image
getImage(ILayerCell cell, IConfigRegistry configRegistry)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
getCellPainterAt, getPreferredHeight, getPreferredWidth, isCalculateByHeight, isCalculateByWidth, paintCell, setCalculateByHeight, setCalculateByWidth
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
getBackgroundColour
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
-
-
-
Constructor Detail
-
ComboBoxFilterIconPainter
public ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider)
- Parameters:
comboBoxDataProvider
- The IComboBoxDataProvider that is used to fill the filter comboboxes.
-
ComboBoxFilterIconPainter
public ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider, org.eclipse.swt.graphics.Image removeFilterImage, org.eclipse.swt.graphics.Image comboImage)
- Parameters:
comboBoxDataProvider
- The IComboBoxDataProvider that is used to fill the filter comboboxes.removeFilterImage
- Icon that will be rendered if a filter is applied for a cell in a filter row.comboImage
- Icon that is rendered if no filter is applied for a cell in a filter row, and the configured cell editor for that cell is aComboBoxCellEditor
.
-
-
Method Detail
-
getImage
protected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
- Overrides:
getImage
in classImagePainter
- Parameters:
cell
- TheILayerCell
for which thisImagePainter
is called.configRegistry
- The currentIConfigRegistry
to retrieve the cell style information from.- Returns:
- The
Image
that should be painted by thisImagePainter
.
-
-