Package org.eclipse.nebula.widgets.nattable.group.command

Examples of org.eclipse.nebula.widgets.nattable.group.command.ReorderColumnGroupCommand


                    } else if (!columnGroupMoved && multipleColumnsMoved) {
                        command = new MultiColumnReorderCommand(
                                columnHideShowLayer, fromPositions.get(i),
                                adjustToPosition(direction, toPositions.get(i)));
                    } else if (columnGroupMoved && !multipleColumnsMoved) {
                        command = new ReorderColumnGroupCommand(
                                columnHideShowLayer, fromPositions.get(i)
                                        .get(0), adjustToPosition(direction,
                                        toPositions.get(i)));
                    }
                    columnHideShowLayer.doCommand(command);
View Full Code Here


    @Test
    public void shouldReorderEntireColumnGroup() {
        assertEquals(3, reorderLayer.getColumnIndexByPosition(3));
        assertEquals(4, reorderLayer.getColumnIndexByPosition(4));

        ReorderColumnGroupCommand reorderGroupCommand = new ReorderColumnGroupCommand(
                layer, 3, 13);
        layer.doCommand(reorderGroupCommand);

        assertEquals(3, reorderLayer.getColumnIndexByPosition(11));
        assertEquals(4, reorderLayer.getColumnIndexByPosition(12));
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.group.command.ReorderColumnGroupCommand

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.