Package org.eclipse.nebula.widgets.nattable.search.strategy

Examples of org.eclipse.nebula.widgets.nattable.search.strategy.RowSearchStrategy


    }

    @Test
    public void shouldAccessCellInSelectedRow() {
        // Select three rows for searching
        RowSearchStrategy rowStrategy = new RowSearchStrategy(new int[] { 0, 2,
                4 }, configRegistry);
        PositionCoordinate[] cellsToSearch = rowStrategy
                .getRowCellsToSearch(layer);
        PositionCoordinate cell = cellsToSearch[0];
        Assert.assertEquals(0, cell.getRowPosition());
        cell = cellsToSearch[10];
        Assert.assertEquals(2, cell.getRowPosition());
View Full Code Here


        Assert.assertEquals(30, cellsToSearch.length);
    }

    @Test
    public void shouldSearchAllBodyCellsForRowInSelection() {
        RowSearchStrategy rowStrategy = new RowSearchStrategy(new int[] { 2, 0,
                4 }, configRegistry);
        rowStrategy
                .setComparator(new CellValueAsStringComparator<Comparable<String>>());
        rowStrategy.setContextLayer(layer);
        PositionCoordinate cell = rowStrategy.executeSearch("[2,2]");
        Assert.assertEquals(2, cell.getColumnPosition());
        Assert.assertEquals(2, cell.getRowPosition());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.search.strategy.RowSearchStrategy

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.