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

Examples of org.eclipse.nebula.widgets.nattable.search.event.SearchEvent


                    .getSearchDirection());
            searchStrategy.setComparator(searchCommand.getComparator());
            searchResultCellCoordinate = searchStrategy
                    .executeSearch(dataValueToFind);

            selectionLayer.fireLayerEvent(new SearchEvent(
                    searchResultCellCoordinate));
            if (searchResultCellCoordinate != null) {
                final SelectCellCommand command = new SelectCellCommand(
                        selectionLayer,
                        searchResultCellCoordinate.columnPosition,
View Full Code Here


        @Override
        public void handleLayerEvent(ILayerEvent event) {
            if (!(event instanceof SearchEvent)) {
                return;
            }
            SearchEvent searchEvent = (SearchEvent) event;
            pos = searchEvent.getCellCoordinate();
        }
View Full Code Here

        final ILayerListener listener = new ILayerListener() {
            public void handleLayerEvent(ILayerEvent event) {
                if (event instanceof SearchEvent) {
                    // Check event, coordinate should be in composite layer
                    // coordinates
                    SearchEvent searchEvent = (SearchEvent) event;
                    if (expected != null) {
                        Assert.assertEquals(expected.columnPosition,
                                searchEvent.getCellCoordinate()
                                        .getColumnPosition());
                        Assert.assertEquals(expected.rowPosition, searchEvent
                                .getCellCoordinate().getRowPosition());
                    } else {
                        Assert.assertNull(searchEvent.getCellCoordinate());
                    }
                }
            }
        };
        gridLayer.addLayerListener(listener);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.search.event.SearchEvent

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.