use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class NatTableTest method setup.
@Before
public void setup() {
this.underlyingLayerFixture = new DataLayerFixture(10, 5, 100, 20);
this.natTable = new NatTable(new Shell(Display.getDefault()), this.underlyingLayerFixture);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class PositionCoordinateTest method setup.
@Before
public void setup() {
ILayer layer = new DataLayerFixture();
this.p1 = new PositionCoordinate(layer, 1, 2);
this.p2 = new PositionCoordinate(layer, 1, 2);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class AbstractLayerTest method setup.
@Before
public void setup() {
this.dataLayer = new DataLayerFixture();
this.firstListener = new LayerListenerFixture();
this.dataLayer.addLayerListener(this.firstListener);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class CompositeLayerTest method getWidth.
@Test
public void getWidth() throws Exception {
assertEquals(150, this.layerFixture.getWidth());
// 20 columns total - 100 wide each
this.layerFixture.setChildLayer(GridRegion.CORNER, new DataLayerFixture(10, 10, 100, 20), 0, 0);
this.layerFixture.setChildLayer(GridRegion.COLUMN_HEADER, new DataLayerFixture(10, 10, 100, 20), 1, 0);
assertEquals(2000, this.layerFixture.getWidth());
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class DataLayerCommandHandlingTest method setup.
@Before
public void setup() {
this.dataLayer = new DataLayerFixture();
this.command = new UpdateDataCommand(this.dataLayer, 2, 2, TEST_VALUE);
}
Aggregations