Package org.eclipse.nebula.widgets.nattable.test.fixture.layer

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture


    private TickUpdateCommandHandler commandHandler;
    private ColumnOverrideLabelAccumulator columnLabelAccumulator;

    @Before
    public void setup() {
        DataLayerFixture bodyDataLayer = new DataLayerFixture();
        selectionLayer = new SelectionLayer(bodyDataLayer);
        selectionLayer.setSelectedCell(1, 1);

        testConfigRegistry = new ConfigRegistry();
        testConfigRegistry.registerConfigAttribute(
View Full Code Here


    }

    private void registerCellStyleAccumulators(DataLayer bodyDataLayer) {
        AggregrateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregrateConfigLabelAccumulator();
        columnLabelAccumulator = new ColumnOverrideLabelAccumulator(
                new DataLayerFixture());
        aggregrateConfigLabelAccumulator.add(columnLabelAccumulator,
                new AlternatingRowConfigLabelAccumulator());
        bodyDataLayer
                .setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);
    }
View Full Code Here

    private SelectionLayer selectionLayer;

    @Before
    public void setUp() {
        selectionLayer = new SelectionLayer(new DataLayerFixture());
        // Selection grid origin as starting point
        selectionLayer.setSelectedCell(0, 0);
    }
View Full Code Here

public class SelectAllTest {
    private SelectionLayer selectionLayer;

    @Before
    public void setUp() {
        selectionLayer = new SelectionLayer(new DataLayerFixture());
        // Selection all cells in grid
        selectionLayer.selectAll();
    }
View Full Code Here

    private IConfigRegistry configRegistryFixture;

    @Before
    public void setup() {
        labelAccumulatorFixture = new ColumnOverrideLabelAccumulator(
                new DataLayerFixture());
        natTableFixture = new NatTableFixture();
        configRegistryFixture = natTableFixture.getConfigRegistry();
        commandFixture = new DisplayColumnStyleEditorCommand(natTableFixture,
                natTableFixture.getConfigRegistry(), 1, 1);
View Full Code Here

    private SelectionLayer selectionLayer;
    private ColumnHideShowLayer columnHideShowLayer;

    @Before
    public void setUp() {
        columnHideShowLayer = new ColumnHideShowLayer(new DataLayerFixture());
        selectionLayer = new SelectionLayer(columnHideShowLayer);
    }
View Full Code Here

public class AutoResizeColumnCommandFixture extends
        InitializeAutoResizeColumnsCommand {

    public AutoResizeColumnCommandFixture() {
        super(new DataLayerFixture(), 2, new ConfigRegistry(), new GCFactory(
                new Image(Display.getDefault(), new Rectangle(0, 0, 100, 100))));

        ConfigRegistry configRegistry = (ConfigRegistry) getConfigRegistry();
        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                new Style());
View Full Code Here

    private DataLayer dataLayer;
    private UpdateDataCommand command;

    @Before
    public void setup() {
        dataLayer = new DataLayerFixture();
        command = new UpdateDataCommand(dataLayer, 2, 2, TEST_VALUE);
    }
View Full Code Here

public class AutoResizeRowCommandFixture extends
        InitializeAutoResizeRowsCommand {

    public AutoResizeRowCommandFixture() {
        super(new DataLayerFixture(), 2, new ConfigRegistry(), new GCFactory(
                new Image(Display.getDefault(), new Rectangle(0, 0, 100, 100))));

        ConfigRegistry configRegistry = (ConfigRegistry) getConfigRegistry();
        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                new Style());
View Full Code Here

    private DefaultBodyLayerStack layerStack;

    @Before
    public void setup() {
        layerStack = new DefaultBodyLayerStack(new DataLayerFixture(10, 5, 100,
                20));
        layerStack.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 2000, 250);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.