Package com.dci.intellij.dbn.data.ui.table.basic

Examples of com.dci.intellij.dbn.data.ui.table.basic.BasicTable


    public DataSearchResultController(SearchableDataComponent searchableComponent) {
        this.searchableComponent = searchableComponent;
    }

    public void moveCursor(DataSearchDirection direction) {
        BasicTable table = searchableComponent.getTable();
        DataModel dataModel = table.getModel();
        DataSearchResult searchResult = dataModel.getSearchResult();
        DataSearchResultScrollPolicy scrollPolicy = DataSearchResultScrollPolicy.HORIZONTAL;
        DataSearchResultMatch oldSelection = searchResult.getSelectedMatch();
        DataSearchResultMatch selection =
                direction == DataSearchDirection.DOWN ? searchResult.selectNext(scrollPolicy) :
View Full Code Here


        updateSelection(table, oldSelection, selection);
    }

    public void selectFirst(int selectedRowIndex, int selectedColumnIndex) {
        BasicTable table = searchableComponent.getTable();
        DataModel dataModel = table.getModel();
        DataSearchResult searchResult = dataModel.getSearchResult();
        DataSearchResultScrollPolicy scrollPolicy = DataSearchResultScrollPolicy.HORIZONTAL;

        DataSearchResultMatch oldSelection = searchResult.getSelectedMatch();
        DataSearchResultMatch selection = searchResult.selectFirst(selectedRowIndex, selectedColumnIndex, scrollPolicy);
View Full Code Here

               
                searchResult.stopUpdating();

                new SimpleLaterInvocator() {
                    public void execute() {
                        BasicTable table = searchableComponent.getTable();
                        int selectedRowIndex = table.getSelectedRow();
                        int selectedColumnIndex = table.getSelectedRow();
                        if (selectedRowIndex < 0) selectedRowIndex = 0;
                        if (selectedColumnIndex < 0) selectedColumnIndex = 0;
                        searchableComponent.cancelEditActions();

                        table.clearSelection();
                        table.repaint();
                        selectFirst(selectedRowIndex, selectedColumnIndex);
                        searchResult.notifyListeners();

                    }
                }.start();
View Full Code Here

    }

    public DataSearchComponent(final SearchableDataComponent searchableComponent) {
        super(new BorderLayout(0, 0));
        this.searchableComponent = searchableComponent;
        BasicTable table = searchableComponent.getTable();
        DataModel dataModel = table.getModel();
        dataModel.addDataModelListener(this);
        initializeFindModel();

        findModel = new DataFindModel();
        DataSearchResult searchResult = dataModel.getSearchResult();
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.data.ui.table.basic.BasicTable

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.