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

Examples of com.dci.intellij.dbn.editor.data.ui.table.DatasetEditorTable


            presentation.setEnabled(true);
            presentation.setVisible(!datasetEditor.isReadonlyData());
            if (datasetEditor.isInserting() || datasetEditor.isLoading() || datasetEditor.isReadonly()) {
                presentation.setEnabled(false);
            } else {
                DatasetEditorTable editorTable = datasetEditor.getEditorTable();
                int[] selectedrows =
                        editorTable == null ? null :
                        editorTable.getSelectedRows();
                presentation.setEnabled(selectedrows != null && selectedrows.length == 1 && selectedrows[0] < editorTable.getModel().getSize());
            }
        }
    }
View Full Code Here


        return getRow().getModel().getEditorTable();
    }

    public void edit() {
        if (getIndex() > 0) {
            DatasetEditorTable table = getEditorTable();
            table.editCellAt(getRow().getIndex(), getIndex());
        }
    }
View Full Code Here

        }
    }

    public void editPrevious() {
        if (getIndex() > 0) {
            DatasetEditorTable table = getEditorTable();
            table.editCellAt(getRow().getIndex(), getIndex() -1);
        }
    }
View Full Code Here

        }
    }

    public void editNext(){
        if (getIndex() < getRow().getCells().size()-1) {
            DatasetEditorTable table = getEditorTable();
            table.editCellAt(getRow().getIndex(), getIndex() + 1);
        }
    }
View Full Code Here

    public boolean isModified() {
        return isModified;
    }

    public boolean isEditing() {
        DatasetEditorTable table = getEditorTable();
        return table.isEditing() &&
               table.isCellSelected(getRow().getIndex(), getIndex());
    }
View Full Code Here

    public void notifyCellUpdated() {
        getRow().getModel().notifyCellUpdated(getRow().getIndex(), getIndex());
    }

    public void scrollToVisible() {
        DatasetEditorTable table = getEditorTable();
        table.scrollRectToVisible(table.getCellRect(getRow().getIndex(), getIndex(), true));
    }
View Full Code Here

            clearError();
            this.error = error;
            notifyCellUpdated();
            if (showPopup) scrollToVisible();
            if (isEditing()) {
                DatasetEditorTable table = getEditorTable();
                TableCellEditor tableCellEditor = table.getCellEditor();
                if (tableCellEditor instanceof DatasetTableCellEditor) {
                    DatasetTableCellEditor cellEditor = (DatasetTableCellEditor) tableCellEditor;
                    cellEditor.highlight(DatasetTableCellEditor.HIGHLIGHT_TYPE_ERROR);
                }
            }
View Full Code Here

        editorForm.showSearchHeader();
    }

    @Nullable
    public DatasetEditorModel getTableModel() {
        DatasetEditorTable editorTable = getEditorTable();
        return editorTable == null ? null : editorTable.getModel();
    }
View Full Code Here

                public void run() {
                    try {
                        if (!isDisposed()) {
                            editorForm.showLoadingHint();
                            editorForm.getEditorTable().cancelEditing();
                            DatasetEditorTable oldEditorTable = instructions.isRebuild() ? editorForm.beforeRebuild() : null;
                            try {
                                DatasetEditorModel tableModel = getTableModel();
                                if (tableModel != null) {
                                    tableModel.load(instructions.isUseCurrentFilter(), instructions.isKeepChanges());
                                    getEditorTable().clearSelection();
View Full Code Here

    }

    protected void setLoading(boolean loading) {
        if (this.isLoading != loading) {
            this.isLoading = loading;
            DatasetEditorTable editorTable = getEditorTable();
            if (editorTable != null) {
                editorTable.setLoading(loading);
                editorTable.repaint();
            }
        }

    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.editor.data.ui.table.DatasetEditorTable

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.