Package org.eclipse.nebula.widgets.nattable.coordinate

Examples of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate


        columnSearchStrategy
                .setComparator(new CellValueAsStringComparator<Comparable<String>>());
        PositionCoordinate[] cellsToSearch = columnSearchStrategy
                .getColumnCellsToSearch(layer);

        PositionCoordinate cell = cellsToSearch[0];
        Assert.assertEquals(2, cell.columnPosition);
        cell = cellsToSearch[5];
        Assert.assertEquals(5, cell.columnPosition);
        cell = cellsToSearch[10];
        Assert.assertEquals(8, cell.columnPosition);
View Full Code Here


        ColumnSearchStrategy columnSearchStrategy = new ColumnSearchStrategy(
                new int[] { 2, 5, 8 }, configRegistry);
        columnSearchStrategy
                .setComparator(new CellValueAsStringComparator<Comparable<String>>());
        columnSearchStrategy.setContextLayer(layer);
        PositionCoordinate cell = columnSearchStrategy.executeSearch("[2,2]");
        Assert.assertEquals(2, cell.getColumnPosition());
        Assert.assertEquals(2, cell.getRowPosition());
    }
View Full Code Here

        final SelectionLayer selectionLayer = gridLayer.getBodyLayer()
                .getSelectionLayer();
        gridStrategy.setContextLayer(selectionLayer);
        gridStrategy.setCaseSensitive(true);

        PositionCoordinate searchResult = gridStrategy.executeSearch("Body");
        Assert.assertEquals(0, searchResult.columnPosition);
        Assert.assertEquals(0, searchResult.rowPosition);

        gridStrategy.setWrapSearch(true);
        // Simulate selecting the search result
View Full Code Here

    private PositionCoordinate p2;

    @Before
    public void setup() {
        ILayer layer = new DataLayerFixture();
        p1 = new PositionCoordinate(layer, 1, 2);
        p2 = new PositionCoordinate(layer, 1, 2);
    }
View Full Code Here

        natTable.notifyListeners(SWT.KeyDown, SWTUtils.keyEvent(SWT.TAB));
        natTable.notifyListeners(SWT.KeyDown, SWTUtils.keyEvent(SWT.TAB));
        natTable.notifyListeners(SWT.KeyDown, SWTUtils.keyEvent(SWT.TAB));

        // Verify new cell selection
        PositionCoordinate lastSelectedCellPosition = gridLayerStack
                .getBodyLayer().getSelectionLayer().getSelectionAnchor();
        assertEquals(4, lastSelectedCellPosition.columnPosition);
        assertEquals(0, lastSelectedCellPosition.rowPosition);

        // Verify that no cell is being edited
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate

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.