use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class ColumnHideShowLayerTest2 method hideLastColumn.
@Test
public void hideLastColumn() throws Exception {
this.hideShowLayer.hideColumnPositions(Arrays.asList(new Integer[] { 3 }));
TestLayer expectedLayer = new TestLayer(3, 4, "0:0;100 | 1:1;100 | 2:2;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 \n" + "A1 | B1 | C1 \n" + "A2 | B2 | C2 \n" + "A3 | B3 | C3 \n");
LayerAssert.assertLayerEquals(expectedLayer, this.hideShowLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class ColumnReorderLayerTest2 method setup.
@Before
public void setup() {
TestLayer dataLayer = new TestLayer(4, 4, "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 | D0 \n" + "A1 | B1 | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n");
this.reorderLayer = new ColumnReorderLayer(dataLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class RowReorderLayerTest2 method setup.
@Before
public void setup() {
TestLayer dataLayer = new TestLayer(4, 4, "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 | D0 \n" + "A1 | B1 | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n");
this.reorderLayer = new RowReorderLayer(dataLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class MarkerSelectionModelTest method setup.
@Before
public void setup() {
String columnInfo = "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100";
String rowInfo = "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40";
String cellInfo = "A0 | < | C0 | D0 \n" + "^ | < | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n";
this.testLayer = new TestLayer(4, 4, columnInfo, rowInfo, cellInfo);
this.selectionLayer = new SelectionLayer(this.testLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class TestLayerTest method setup.
@Before
public void setup() {
String columnInfo = "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100";
String rowInfo = "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40";
String cellInfo = "A0~NORMAL:stuff | < | C0 | D0 \n" + "^ | < | C1 | D1 \n" + "A2~SELECT | B2 | C2 | D2 \n" + "A3~:configLabel | B3 | C3 | D3 \n";
this.testLayer = new TestLayer(4, 4, columnInfo, rowInfo, cellInfo);
}
Aggregations