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

Examples of org.eclipse.nebula.widgets.nattable.layer.event.RowInsertEvent


        if (!insertRanges.isEmpty()) {
            Display.getDefault().syncExec(new Runnable() {
                @Override
                public void run() {
                    fireLayerEvent(new RowInsertEvent(getUnderlyingLayer(),
                            insertRanges));
                }
            });
        }
    }
View Full Code Here


        assertEquals("two", rowReorderLayer.getDataValueByPosition(0, 2));
        assertEquals("one", rowReorderLayer.getDataValueByPosition(0, 3));

        // add row add index 2
        contents.add(2, "test");
        underlyingLayer.fireLayerEvent(new RowInsertEvent(underlyingLayer, 2));

        assertEquals(4, rowReorderLayer.getRowIndexByPosition(0));
        assertEquals(3, rowReorderLayer.getRowIndexByPosition(1));
        assertEquals(2, rowReorderLayer.getRowIndexByPosition(2));
        assertEquals(1, rowReorderLayer.getRowIndexByPosition(3));
View Full Code Here

        assertEquals(40, this.viewportLayer.getMinimumOrigin().getY());

        // since the RowHideShowLayer is involved in the current composition
        // the number of rows is cached and we need to update this before reset
        this.rowCount = 5;
        this.dataLayer.fireLayerEvent(new RowInsertEvent(this.dataLayer, new Range(0, 2)));
        reset();
    }
View Full Code Here

        // Add data and fire event
        dataList.add(new RowDataFixture("SID", "SDesc", "A", new Date(),
                new PricingTypeBean("MN"), 2.0, 2.1, 100, true, 3.0, 1.0, 1.0,
                1000, 100000, 50000));
        dataLayer.fireLayerEvent(new RowInsertEvent(dataLayer, 4));

        // Trigger summary calculation - on the new summary row
        askPriceSummary = natTable.getDataValueByPosition(askPriceColumnIndex,
                5);
        assertEquals("110.0", askPriceSummary.toString());
View Full Code Here

        assertEquals("four", rowHideShowLayer.getDataValueByPosition(0, 2));
        assertEquals("five", rowHideShowLayer.getDataValueByPosition(0, 3));

        // add row add index 2
        contents.add(2, "test");
        underlyingLayer.fireLayerEvent(new RowInsertEvent(underlyingLayer, 2));

        assertEquals(5, rowHideShowLayer.getRowCount());
        assertEquals(0, rowHideShowLayer.getRowIndexByPosition(0));
        assertEquals(1, rowHideShowLayer.getRowIndexByPosition(1));
        assertEquals(2, rowHideShowLayer.getRowIndexByPosition(2));
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.layer.event.RowInsertEvent

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.