use of org.eclipse.nebula.widgets.nattable.layer.stack.DummyGridLayerStack in project nebula.widgets.nattable by eclipse.
the class NatTableFixture method scrollToRow.
public void scrollToRow(int gridRowPosition) {
DummyGridLayerStack gridLayer = (DummyGridLayerStack) getUnderlyingLayerByPosition(1, 1);
ViewportLayer viewportLayer = gridLayer.getBodyLayer().getViewportLayer();
viewportLayer.invalidateVerticalStructure();
viewportLayer.setOriginY(viewportLayer.getStartYOfRowPosition(gridRowPosition));
}
use of org.eclipse.nebula.widgets.nattable.layer.stack.DummyGridLayerStack in project nebula.widgets.nattable by eclipse.
the class NatTableFixture method scrollToColumn.
public void scrollToColumn(int gridColumnPosition) {
DummyGridLayerStack gridLayer = (DummyGridLayerStack) getUnderlyingLayerByPosition(1, 1);
ViewportLayer viewportLayer = gridLayer.getBodyLayer().getViewportLayer();
viewportLayer.invalidateHorizontalStructure();
viewportLayer.setOriginX(viewportLayer.getStartXOfColumnPosition(gridColumnPosition));
}
use of org.eclipse.nebula.widgets.nattable.layer.stack.DummyGridLayerStack in project nebula.widgets.nattable by eclipse.
the class Tooltips method createExampleControl.
@Override
public Control createExampleControl(Composite parent) {
NatTable natTable = new NatTable(parent, new DummyGridLayerStack(20, 100));
attachToolTip(natTable);
return natTable;
}
Aggregations