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

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


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

        // delete row index 2: value "three"
        contents.remove(2);
        underlyingLayer.fireLayerEvent(new RowDeleteEvent(underlyingLayer, 2));

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


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

        // delete last row in list
        int lastRowIndex = contents.size() - 1;
        contents.remove(lastRowIndex);
        underlyingLayer.fireLayerEvent(new RowDeleteEvent(underlyingLayer,
                lastRowIndex));

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

        // delete rows in the middle
        contents.remove(1);
        contents.remove(1);
        contents.remove(1);
        underlyingLayer.fireLayerEvent(new RowDeleteEvent(underlyingLayer,
                new Range(1, 4)));

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

        testInit();

        // delete last row
        int index = contents.size() - 1;
        contents.remove(index);
        underlyingLayer.fireLayerEvent(new RowDeleteEvent(underlyingLayer,
                index));

        assertEquals(4, viewportLayer.getRowCount());
    }
View Full Code Here

TOP

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

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.