use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class HideShowColumnEventTest method setUp.
@Before
public void setUp() {
this.hideShowLayer = new BaseColumnHideShowLayerFixture(new DataLayerFixture(100, 40));
this.layerListener = new LayerListenerFixture();
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class SelectionModelStructuralChangeEventHandlerTest method setup.
@Before
public void setup() {
this.dataLayer = new DataLayerFixture(10, 10);
DefaultBodyLayerStack bodyLayer = new DefaultBodyLayerStack(this.dataLayer);
this.selectionLayer = bodyLayer.getSelectionLayer();
this.selectionModel = this.selectionLayer.getSelectionModel();
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class HideSelectedColumnsTest method setUp.
@Before
public void setUp() {
this.columnHideShowLayer = new ColumnHideShowLayer(new DataLayerFixture());
this.selectionLayer = new SelectionLayer(this.columnHideShowLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ResizeEventDiffTest method before.
@Before
public void before() {
DataLayerFixture dataLayer = new DataLayerFixture(20, 20, 100, 40);
this.viewportLayer = new ViewportLayer(dataLayer);
this.viewportLayer.setClientAreaProvider(new IClientAreaProvider() {
@Override
public Rectangle getClientArea() {
return new Rectangle(0, 0, 400, 400);
}
});
this.viewportLayer.setOriginX(this.viewportLayer.getStartXOfColumnPosition(2));
this.viewportLayer.setOriginY(this.viewportLayer.getStartYOfRowPosition(2));
this.event = new ColumnResizeEvent(dataLayer, 2);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ResizingVisibleReorderedColumnsTest method setUp.
@Before
public void setUp() {
this.dataLayer = new DataLayerFixture(100, 40);
this.reorderLayer = new BaseColumnReorderLayerFixture(this.dataLayer);
this.layerListener = new LayerListenerFixture();
this.reorderLayer.addLayerListener(this.layerListener);
}
Aggregations