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

Examples of org.eclipse.nebula.widgets.nattable.resize.command.InitializeAutoResizeRowsCommand


    public void run(NatTable natTable, MouseEvent event) {
        Point clickPoint = new Point(event.x, event.y);
        int row = CellEdgeDetectUtil.getRowPositionToResize(natTable,
                clickPoint);

        InitializeAutoResizeRowsCommand command = new InitializeAutoResizeRowsCommand(
                natTable, row, natTable.getConfigRegistry(), new GCFactory(
                        natTable));
        natTable.doCommand(command);
    }
View Full Code Here


                autoResizeRows.addSelectionListener(new SelectionAdapter() {
                    @Override
                    public void widgetSelected(SelectionEvent event) {
                        int rowPosition = getNatEventData(event)
                                .getRowPosition();
                        natTable.doCommand(new InitializeAutoResizeRowsCommand(
                                natTable, rowPosition, natTable
                                        .getConfigRegistry(), new GCFactory(
                                        natTable)));
                    }
                });
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.resize.command.InitializeAutoResizeRowsCommand

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.