use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class CompositeLayerTest method getHeight.
@Test
public void getHeight() throws Exception {
assertEquals(70, this.layerFixture.getHeight());
// 20 rows, each 20 high
this.layerFixture.setChildLayer(GridRegion.CORNER, new DataLayerFixture(10, 10, 100, 20), 0, 0);
this.layerFixture.setChildLayer(GridRegion.ROW_HEADER, new DataLayerFixture(10, 10, 100, 20), 0, 1);
assertEquals(400, this.layerFixture.getHeight());
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ColumnGroupReorderDragModeTest method setup.
@Before
public void setup() {
this.testLayer = new DataLayerFixture(10, 5, 100, 20);
this.columnGroupModel = new ColumnGroupModelFixture();
this.groupReorderDragMode = new ColumnGroupHeaderReorderDragMode(this.columnGroupModel);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ColumnHeaderReoderDragModeTest method setup.
@Before
public void setup() {
this.model = new ColumnGroupModelFixture();
this.model.addColumnsIndexesToGroup("G4", 18, 19, 20);
this.model.getColumnGroupByIndex(0).setUnbreakable(true);
this.model.getColumnGroupByIndex(10).setUnbreakable(true);
this.testLayer = new DataLayerFixture(20, 10, 100, 20);
this.dragMode = new ColumnHeaderReorderDragMode(this.model);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ColumnHideShowLayerTest method showColumnPositions.
@Test
public void showColumnPositions() throws Exception {
this.columnHideShowLayer = new ColumnHideShowLayerFixture(new DataLayerFixture(10, 2, 100, 20));
assertEquals(10, this.columnHideShowLayer.getColumnCount());
this.columnHideShowLayer.hideColumnPositions(Arrays.asList(3, 4, 5));
assertEquals(7, this.columnHideShowLayer.getColumnCount());
assertEquals(-1, this.columnHideShowLayer.getColumnPositionByIndex(3));
assertEquals(-1, this.columnHideShowLayer.getColumnPositionByIndex(4));
this.columnHideShowLayer.showColumnIndexes(Arrays.asList(3, 4));
assertEquals(9, this.columnHideShowLayer.getColumnCount());
assertEquals(3, this.columnHideShowLayer.getColumnPositionByIndex(3));
assertEquals(4, this.columnHideShowLayer.getColumnPositionByIndex(4));
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ColumnOverrideLabelAccumulatorTest method setUp.
@Before
public void setUp() {
this.labelAccumulator = new ColumnOverrideLabelAccumulator(new DataLayerFixture());
this.testProperties = new Properties();
}
Aggregations