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

Examples of org.eclipse.nebula.widgets.nattable.selection.command.SelectAllCommand


import org.eclipse.swt.events.KeyEvent;

public class SelectAllAction implements IKeyAction {

    public void run(NatTable natTable, KeyEvent event) {
        natTable.doCommand(new SelectAllCommand());
    }
View Full Code Here


    @Test
    public void shouldSearchSelectionBackwards() {
        // Select entire grid
        gridLayer
                .doCommand(new SelectCellCommand(gridLayer, 1, 1, false, false));
        gridLayer.doCommand(new SelectAllCommand());

        // Should find the first cell in grid
        final SelectionLayer selectionLayer = gridLayer.getBodyLayer()
                .getSelectionLayer();
        SelectionSearchStrategy selectionStrategy = new SelectionSearchStrategy(
View Full Code Here

        // Reorder columns
        gridLayer.doCommand(new ColumnReorderCommand(gridLayer, 2, 1));
        assertEquals(columnWidth, gridLayer.getColumnWidthByPosition(1));

        // Select all columns
        gridLayer.doCommand(new SelectAllCommand());

        // Resize all selected columns
        command = new InitializeAutoResizeColumnsCommand(gridLayer, 1,
                configRegistry, gcFactory);
        gridLayer.doCommand(command);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.selection.command.SelectAllCommand

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.