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

Examples of org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandCollapseCommand


        int c = natTable.getColumnPositionByX(event.x);
        int r = natTable.getRowPositionByY(event.y);
        ILayerCell cell = natTable.getCellByPosition(c, r);
        int index = cell.getLayer()
                .getRowIndexByPosition(cell.getRowPosition());
        TreeExpandCollapseCommand command = new TreeExpandCollapseCommand(index);
        natTable.doCommand(command);
    }
View Full Code Here


        PositionCoordinate anchorPosition = this.selectionLayer.getSelectionAnchor();

        if (anchorPosition.rowPosition != SelectionLayer.NO_SELECTION && anchorPosition.columnPosition != SelectionLayer.NO_SELECTION) {
            int rowIndex = this.selectionLayer.getRowIndexByPosition(anchorPosition.rowPosition);

            TreeExpandCollapseCommand command = new TreeExpandCollapseCommand(rowIndex);
            natTable.doCommand(command);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandCollapseCommand

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.