Examples of ReorderColumnGroupCommand


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

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

    @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
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.