Class FilterRowPainter
java.lang.Object
org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
org.eclipse.nebula.widgets.nattable.filterrow.FilterRowPainter
- All Implemented Interfaces:
ICellPainter
Painter that is used to paint the cells of the filter row. In detail it is a
TextPainter
that is wrapped and decorated with an
ImagePainter
to indicate filter states.-
Constructor Summary
ConstructorDescriptionCreates aFilterRowPainter
that uses the defaultFilterIconPainter
.FilterRowPainter
(ICellPainter painter, ImagePainter filterIconPainter) Creates aFilterRowPainter
that uses the givenICellPainter
as filter row painter.FilterRowPainter
(ImagePainter filterIconPainter) Creates aFilterRowPainter
that uses the givenImagePainter
as filter icon painter. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getCellPainterAt, getPreferredHeight, getPreferredWidth, getWrappedPainter, getWrappedPainterBounds, paintCell, setWrappedPainter
-
Constructor Details
-
FilterRowPainter
public FilterRowPainter()Creates aFilterRowPainter
that uses the defaultFilterIconPainter
. -
FilterRowPainter
Creates aFilterRowPainter
that uses the givenImagePainter
as filter icon painter. Uses aTextPainter
that is decorated with theImagePainter
as filter row painter.- Parameters:
filterIconPainter
- TheImagePainter
that should be used to paint the icon in the filter row cells.
-
FilterRowPainter
Creates aFilterRowPainter
that uses the givenICellPainter
as filter row painter. Needs theImagePainter
that is used as decorator to be able to identify the icon click.- Parameters:
painter
- TheICellPainter
that should be used as filter row painter.filterIconPainter
- TheImagePainter
that should be used to paint the icon in the filter row cells.- Since:
- 2.1
-
-
Method Details
-
getFilterIconPainter
- Returns:
- The
ImagePainter
that is used to paint the icon in the filter row cells.
-