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

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


                configRegistry);
        selectionStrategy
                .setComparator(new CellValueAsStringComparator<Comparable<String>>());
        selectionStrategy.setContextLayer(selectionLayer);

        PositionCoordinate positionCoordinate = selectionStrategy
                .executeSearch(CELL_VALUE);
        Assert.assertEquals(0, positionCoordinate.columnPosition);
        Assert.assertEquals(0, positionCoordinate.rowPosition);

        // Should find last cell
View Full Code Here


                    isCaseSensitive, isWholeWord, isIncremental, isRegex,
                    isIncludeCollapsed,
                    new CellValueAsStringComparator<Comparable<String>>());
            commandHandler.doCommand(selectionLayer, searchCommand);

            final PositionCoordinate searchResultCellCoordinate = commandHandler
                    .getSearchResultCellCoordinate();
            if (expected != null) {
                Assert.assertEquals(expected.columnPosition,
                        searchResultCellCoordinate.columnPosition);
                Assert.assertEquals(expected.rowPosition,
View Full Code Here

        isRegex = false;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = "[2,4]";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();

        isForward = false;

        searchText = "[2,3]";
        expected = new PositionCoordinate(null, 2, 3);
        doTest();

        searchText = "[2,4]";
        expected = null;
        doTest();
View Full Code Here

        isRegex = false;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = "[";
        expected = new PositionCoordinate(null, 2, 2);
        doTest();
        searchText = "[2";
        expected = new PositionCoordinate(null, 2, 2);
        doTest();
        searchText = "[2,";
        expected = new PositionCoordinate(null, 2, 2);
        doTest();
        searchText = "[2,4";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();

        isForward = false;

        searchText = "[";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
        searchText = "[2";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
        searchText = "[2,";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
        searchText = "[2,2";
        expected = new PositionCoordinate(null, 2, 2);
        doTest();
    }
View Full Code Here

        isRegex = false;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = "[";
        expected = new PositionCoordinate(null, 2, 3);
        doTest();
        searchText = "[2";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
        searchText = "[2,4";
        expected = null;
        doTest();
    }
View Full Code Here

        isRegex = false;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = "[2,2]";
        expected = new PositionCoordinate(null, 2, 2);
        doTest();

        isForward = false;

        isWrapSearch = false;
        searchText = "[2,4]";
        expected = null;
        doTest();

        isWrapSearch = true;
        expected = new PositionCoordinate(null, 2, 4);
        doTest();

        selectCell(0, 0);

        final int columnCount = gridLayer.getBodyLayer().getColumnCount();
        final int rowCount = gridLayer.getBodyLayer().getRowCount();
        searchText = "[" + String.valueOf(columnCount - 1) + ",";
        expected = new PositionCoordinate(null, columnCount - 1, rowCount - 1);
        doTest();

        isForward = true;
        searchText = "[0,";
        expected = new PositionCoordinate(null, 0, 0);
        doTest();
    }
View Full Code Here

        isRegex = true;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = ".2.4.";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
    }
View Full Code Here

        isRegex = true;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = ".[23].[23].";
        expected = new PositionCoordinate(null, 2, 3);
        doTest();
    }
View Full Code Here

        isRegex = true;
        isIncludeCollapsed = false;
        isColumnFirst = false;

        searchText = ".[23].[23].";
        expected = new PositionCoordinate(null, 3, 2);
        doTest();
    }
View Full Code Here

        isRegex = false;
        isIncludeCollapsed = false;
        isColumnFirst = true;

        searchText = "[2,4]";
        expected = new PositionCoordinate(null, 2, 4);
        doTest();
    }
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.