Package org.eclipse.nebula.widgets.nattable.resize.event

Examples of org.eclipse.nebula.widgets.nattable.resize.event.RowResizeEvent


                    command.getRowHeight(rowPosition), false);
        }

        List<Range> ranges = PositionUtil.getRanges(rowPositions);
        for (Range range : ranges) {
            dataLayer.fireLayerEvent(new RowResizeEvent(dataLayer, range));
        }

        return true;
    }
View Full Code Here


    public void setRowHeightByPosition(int rowPosition, int height,
            boolean fireEvent) {
        this.rowHeightConfig.setSize(rowPosition, height);
        if (fireEvent)
            fireLayerEvent(new RowResizeEvent(this, rowPosition));
    }
View Full Code Here

        layerListener = new LayerListenerFixture();
        dataLayer.addLayerListener(layerListener);
        dataLayer.setRowHeightByPosition(3, 100);

        // This is the propagated event
        RowResizeEvent rowResizeEvent = (RowResizeEvent) layerListener
                .getReceivedEvents().get(0);
        Collection<Rectangle> actualRectangles = rowResizeEvent
                .getChangedPositionRectangles();

        // The affected region should have the following size
        Rectangle expectedRectangle = new Rectangle(0, 3, 5, 4);
        Assert.assertEquals(expectedRectangle, actualRectangles.iterator()
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.resize.event.RowResizeEvent

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.