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

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


                    prefix = prefix.substring(0, prefix.indexOf("_"));
                    value.put(newColumn, prefix + "_" + (columns.size() - 1));
                }

                glazedListsGridLayer.getBodyDataLayer().fireLayerEvent(
                        new ColumnInsertEvent(glazedListsGridLayer
                                .getBodyDataLayer(), columns.size() - 1));
            }
        });

        natTable.doCommand(new ColumnHideCommand(glazedListsGridLayer
View Full Code Here


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

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

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

                    String prefix = value.get("Column_0");
                    prefix = prefix.substring(0, prefix.indexOf("_"));
                    value.put(newColumn, prefix + "_" + (columns.size() - 1));
                }

                bodyDataLayer.fireLayerEvent(new ColumnInsertEvent(
                        bodyDataLayer, columns.size() - 1));
            }
        });

        return panel;
View Full Code Here

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

        // add column add index 2
        contents.get(0).add(2, "test");
        underlyingLayer
                .fireLayerEvent(new ColumnInsertEvent(underlyingLayer, 2));

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

TOP

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

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.