Examples of ColumnDeleteEvent


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

        assertEquals("one", columnReorderLayer.getDataValueByPosition(3, 0));

        // delete column position 1 (index 2: value "three")
        contents.get(0).remove(2);
        underlyingLayer
                .fireLayerEvent(new ColumnDeleteEvent(underlyingLayer, 2));

        assertEquals(2, columnReorderLayer.getColumnIndexByPosition(0));
        assertEquals(1, columnReorderLayer.getColumnIndexByPosition(1));
        assertEquals(0, columnReorderLayer.getColumnIndexByPosition(2));
        assertEquals(-1, columnReorderLayer.getColumnIndexByPosition(3));
View Full Code Here

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

        assertEquals("one", columnReorderLayer.getDataValueByPosition(3, 0));

        // delete last column
        int lastColumnIndex = contents.get(0).size() - 1;
        contents.get(0).remove(lastColumnIndex);
        underlyingLayer.fireLayerEvent(new ColumnDeleteEvent(underlyingLayer,
                lastColumnIndex));

        assertEquals(2, columnReorderLayer.getColumnIndexByPosition(0));
        assertEquals(1, columnReorderLayer.getColumnIndexByPosition(1));
        assertEquals(0, columnReorderLayer.getColumnIndexByPosition(2));
View Full Code Here

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

        assertEquals("one", columnReorderLayer.getDataValueByPosition(3, 0));

        // delete columns in the middle
        contents.get(0).remove(1);
        contents.get(0).remove(1);
        underlyingLayer.fireLayerEvent(new ColumnDeleteEvent(underlyingLayer,
                new Range(1, 3)));

        assertEquals(2, columnReorderLayer.getColumnCount());
        assertEquals(1, columnReorderLayer.getColumnIndexByPosition(0));
        assertEquals(0, columnReorderLayer.getColumnIndexByPosition(1));
View Full Code Here

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

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

        // delete column index 1: value "two")
        contents.get(0).remove(1);
        underlyingLayer
                .fireLayerEvent(new ColumnDeleteEvent(underlyingLayer, 1));

        assertEquals(3, columnHideShowLayer.getColumnCount());
        assertEquals(0, columnHideShowLayer.getColumnIndexByPosition(0));
        assertEquals(2, columnHideShowLayer.getColumnIndexByPosition(1));
        assertEquals(3, columnHideShowLayer.getColumnIndexByPosition(2));
View Full Code Here

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

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

        // delete column index 2: value "three"
        contents.get(0).remove(2);
        underlyingLayer
                .fireLayerEvent(new ColumnDeleteEvent(underlyingLayer, 2));

        assertEquals(4, columnHideShowLayer.getColumnCount());
        assertEquals(0, columnHideShowLayer.getColumnIndexByPosition(0));
        assertEquals(1, columnHideShowLayer.getColumnIndexByPosition(1));
        assertEquals(2, columnHideShowLayer.getColumnIndexByPosition(2));
View Full Code Here

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

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

        // delete last column in list
        int lastColumnIndex = contents.get(0).size() - 1;
        contents.get(0).remove(lastColumnIndex);
        underlyingLayer.fireLayerEvent(new ColumnDeleteEvent(underlyingLayer,
                lastColumnIndex));

        assertEquals(3, columnHideShowLayer.getColumnCount());
        assertEquals(0, columnHideShowLayer.getColumnIndexByPosition(0));
        assertEquals(1, columnHideShowLayer.getColumnIndexByPosition(1));
View Full Code Here

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

        // delete columns in the middle
        contents.get(0).remove(1);
        contents.get(0).remove(1);
        contents.get(0).remove(1);
        underlyingLayer.fireLayerEvent(new ColumnDeleteEvent(underlyingLayer,
                new Range(1, 4)));

        assertEquals(2, columnHideShowLayer.getColumnCount());
        assertEquals(0, columnHideShowLayer.getColumnIndexByPosition(0));
        assertEquals(1, columnHideShowLayer.getColumnIndexByPosition(1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.