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

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture


    private GridLayerFixture gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here


    public ViewportLayerFixture(IUniqueIndexLayer underlingLayer) {
        super(underlingLayer);
        setClientAreaProvider(getClientAreaProvider(new Rectangle(0, 0, 1000,
                1000)));
        doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

    @Before
    public void setup() {
        gridLayer = new DummyGridLayerStack();
        natTable = new NatTable(new Shell(Display.getDefault()), gridLayer);
        natTable.setSize(400, 400);
        natTable.doCommand(new InitializeClientAreaCommandFixture());
        dragMode = new CellSelectionDragMode();
        Event event = new Event();
        event.widget = new Shell();
        event.x = 100;
        event.y = 100;
View Full Code Here

                return new Rectangle(0, 0, 400, 160);
            }

        });
        compositeFreezeLayer
                .doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

    private GridLayerFixture gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

                return new Rectangle(0, 0, 160, 80);
            }
        });

        // Client area gets init when this command is fired
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());

        Assert.assertEquals(160, viewport.getClientAreaWidth());
        Assert.assertEquals(80, viewport.getClientAreaHeight());

        Assert.assertEquals(160, viewport.getWidth());
View Full Code Here

    }

    @Test
    public void initRowHeaderHeight() throws Exception {
        GridLayer gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());

        ILayer rowHeader = gridLayer.getRowHeaderLayer();
        // Only visible rows are counted
        Assert.assertEquals(100, rowHeader.getHeight());
        Assert.assertEquals(40, rowHeader.getWidth());
View Full Code Here

    private GridLayerFixture gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture

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.