use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class EditTraversalStrategyLeftRightTest method setUp.
@Before
public void setUp() {
this.dataLayer = new DataLayerFixture(10, 10, 100, 20);
this.selectionLayer = new SelectionLayer(this.dataLayer);
this.viewportLayer = new ViewportLayer(this.selectionLayer);
this.viewportLayer.setRegionName(GridRegion.BODY);
this.viewportLayer.addConfiguration(new DefaultEditBindings());
this.viewportLayer.addConfiguration(new DefaultEditConfiguration());
this.natTable = new NatTableFixture(this.viewportLayer);
this.natTable.enableEditingOnAllCells();
this.natTable.getConfigRegistry().registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, IEditableRule.NEVER_EDITABLE, DisplayMode.EDIT, NOT_EDITABLE);
this.natTable.getConfigRegistry().registerConfigAttribute(EditConfigAttributes.OPEN_ADJACENT_EDITOR, Boolean.TRUE);
this.natTable.registerLabelOnColumn(this.dataLayer, 2, NOT_EDITABLE);
this.natTable.registerLabelOnColumn(this.dataLayer, 5, NOT_EDITABLE);
this.natTable.registerLabelOnColumn(this.dataLayer, 6, NOT_EDITABLE);
this.natTable.registerLabelOnColumn(this.dataLayer, 7, NOT_EDITABLE);
this.natTable.registerLabelOnColumn(this.dataLayer, 8, NOT_EDITABLE);
this.natTable.registerLabelOnColumn(this.dataLayer, 9, NOT_EDITABLE);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class HideSelectedRowsTest method setUp.
@Before
public void setUp() {
this.rowHideShowLayer = new RowHideShowLayer(new DataLayerFixture());
this.selectionLayer = new SelectionLayer(this.rowHideShowLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class SelectionLayerStructuralChangeEventHandlerTest 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 SelectionModelTest method before.
@Before
public void before() {
SelectionLayer selectionLayer = new SelectionLayer(new DataLayerFixture(100, 100, 100, 40));
this.model = new SelectionModel(selectionLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class CellSelectionTraversalTest method setUp.
@Before
public void setUp() {
this.selectionLayer = new SelectionLayer(new DataLayerFixture(10, 10, 100, 20));
this.viewportLayer = new ViewportLayer(this.selectionLayer);
}
Aggregations