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
ConstructorsConstructorDescriptionCreates aFilterRowPainterthat uses the defaultFilterIconPainter.FilterRowPainter(ICellPainter painter, ImagePainter filterIconPainter) Creates aFilterRowPainterthat uses the givenICellPainteras filter row painter.FilterRowPainter(ImagePainter filterIconPainter) Creates aFilterRowPainterthat uses the givenImagePainteras 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 aFilterRowPainterthat uses the defaultFilterIconPainter. -
FilterRowPainter
Creates aFilterRowPainterthat uses the givenImagePainteras filter icon painter. Uses aTextPainterthat is decorated with theImagePainteras filter row painter.- Parameters:
filterIconPainter- TheImagePainterthat should be used to paint the icon in the filter row cells.
-
FilterRowPainter
Creates aFilterRowPainterthat uses the givenICellPainteras filter row painter. Needs theImagePainterthat is used as decorator to be able to identify the icon click.- Parameters:
painter- TheICellPainterthat should be used as filter row painter.filterIconPainter- TheImagePainterthat should be used to paint the icon in the filter row cells.- Since:
- 2.1
-
-
Method Details
-
getFilterIconPainter
- Returns:
- The
ImagePainterthat is used to paint the icon in the filter row cells.
-