Search in sources :

Example 1 with ColumnGroupModelFixture

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);
}
Also used : BaseDataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.BaseDataLayerFixture) ColumnGroupModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture) ColumnReorderLayer(org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer) Before(org.junit.Before)

Example 2 with ColumnGroupModelFixture

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);
}
Also used : ColumnGroupModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) Before(org.junit.Before)

Example 3 with ColumnGroupModelFixture

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);
}
Also used : ColumnHeaderReorderDragMode(org.eclipse.nebula.widgets.nattable.group.action.ColumnHeaderReorderDragMode) ColumnGroupModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) Before(org.junit.Before)

Example 4 with ColumnGroupModelFixture

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);
}
Also used : NatTableFixture(org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture) ColumnGroupModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) ColumnGroupBodyLayerStack(org.eclipse.nebula.widgets.nattable.layer.stack.ColumnGroupBodyLayerStack) Before(org.junit.Before)

Aggregations

ColumnGroupModelFixture (org.eclipse.nebula.widgets.nattable.test.fixture.group.ColumnGroupModelFixture)4 Before (org.junit.Before)4 DataLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture)3 ColumnHeaderReorderDragMode (org.eclipse.nebula.widgets.nattable.group.action.ColumnHeaderReorderDragMode)1 ColumnGroupBodyLayerStack (org.eclipse.nebula.widgets.nattable.layer.stack.ColumnGroupBodyLayerStack)1 ColumnReorderLayer (org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer)1 NatTableFixture (org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture)1 BaseDataLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.BaseDataLayerFixture)1