use of org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture in project nebula.widgets.nattable by eclipse.
the class ColumnGroupReorderLayerTest method setUp.
@Before
public void setUp() {
this.modelFixture = new ColumnGroupModelFixture();
this.reorderLayer = new ColumnReorderLayer(new BaseDataLayerFixture(24, 20));
this.layer = new ColumnGroupReorderLayer(this.reorderLayer, this.modelFixture);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture 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.group.ColumnGroupModelFixture 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.group.ColumnGroupModelFixture in project nebula.widgets.nattable by eclipse.
the class ColumnGroupUtilsTest method setup.
/*
* Test fixture
*
* 0 1 2 3 4 5 6 ... 8 9 10 11 12
* ------------------------------------------------------------------ |<- G1
* ->| |<-- G2 -->| |<- G4 ->|<--- G3 --->|
*/
@Before
public void setup() {
this.model = new ColumnGroupModelFixture();
this.model.addColumnsIndexesToGroup("G4", 8, 9);
this.bodyStack = new ColumnGroupBodyLayerStack(new DataLayerFixture(20, 10, 10, 20), this.model);
// Inits client area
new NatTableFixture(this.bodyStack);
}
Aggregations