Class AutoResizeRowPaintListener
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.resize.AutoResizeRowPaintListener
-
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.PaintListener
,org.eclipse.swt.internal.SWTEventListener
public class AutoResizeRowPaintListener extends Object implements org.eclipse.swt.events.PaintListener
PaintListener
that is used to auto-resize rows lazily when they become visible in the viewport.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description AutoResizeRowPaintListener(NatTable natTable, ViewportLayer viewportLayer, ILayer bodyDataLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paintControl(org.eclipse.swt.events.PaintEvent e)
-
-
-
Constructor Detail
-
AutoResizeRowPaintListener
public AutoResizeRowPaintListener(NatTable natTable, ViewportLayer viewportLayer, ILayer bodyDataLayer)
- Parameters:
natTable
- The NatTable to which thisPaintListener
is attached to. Needed to create a temporaryGC
and retrieve theIConfigRegistry
.viewportLayer
- TheViewportLayer
to ensure that the auto row resize is only triggered for visible rows.bodyDataLayer
- TheDataLayer
of the body region to inspect all columns in a row, even if not visible in the viewport.
-
-