Package org.eclipse.nebula.widgets.nattable.util

Examples of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider


    @Before
    public void setUp() {
        gridLayer = new DefaultGridLayer(getBodyDataProvider(),
                GridLayerFixture.colHeaderDataProvider);
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here


        viewportLayer = new ViewportLayer(selectionLayer);
        freezeLayer = new FreezeLayer(selectionLayer);

        compositeFreezeLayer = new CompositeFreezeLayer(freezeLayer,
                viewportLayer, selectionLayer);
        compositeFreezeLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 400, 160);
            }
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testFreezeSelectionInMiddle() {
        compositeFreezeLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 300, 120);
            }
View Full Code Here

    @Before
    public void before() {
        dataLayer = new DataLayerFixture(20, 20, 100, 40);
        hideShowLayer = new RowHideShowLayer(dataLayer);
        viewportLayer = new ViewportLayer(hideShowLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            @Override
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 800, 400);
            }
View Full Code Here

    @Before
    public void before() {
        DataLayerFixture dataLayer = new DataLayerFixture(20, 20, 100, 40);
        viewportLayer = new ViewportLayer(dataLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 400, 400);
            }
View Full Code Here

    @Before
    public void before() {
        dataLayer = new DataLayerFixture(20, 20, 100, 40);
        hideShowLayer = new ColumnHideShowLayer(dataLayer);
        viewportLayer = new ViewportLayer(hideShowLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 800, 400);
            }
View Full Code Here

    @Test
    public void initBodyLayer() throws Exception {
        DefaultGridLayer gridLayer = new GridLayerFixture();

        ViewportLayer viewport = gridLayer.getBodyLayer().getViewportLayer();
        viewport.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 160, 80);
            }
        });
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider

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.