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

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


            table.cancelEditing();
            DatasetEditorModel model = table.getModel();
            if (treeNode instanceof DBColumn &&  model.getSize() > 0) {
                DBColumn column = (DBColumn) treeNode;
                int modelColumnIndex = model.getHeader().indexOfColumn(column);
                int tableColumnIndex = table.convertColumnIndexToView(modelColumnIndex);
                int rowIndex = table.getSelectedRow();
                if (rowIndex == -1rowIndex = 0;
                if (tableColumnIndex == -1) tableColumnIndex = 0;
                table.selectCell(rowIndex, tableColumnIndex);
                if (requestFocus) {
View Full Code Here


        public void actionPerformed(AnActionEvent e) {
            DatasetEditorTable editorTable = datasetEditor.getEditorTable();
            int modelColumnIndex = columnInfo.getColumnIndex();
            if (editorTable != null) {
                int tableColumnIndex = editorTable.convertColumnIndexToView(modelColumnIndex);
                editorTable.sort(tableColumnIndex, SortDirection.ASCENDING, false);
            }
        }
    }
View Full Code Here

        public void actionPerformed(AnActionEvent e) {
            DatasetEditorTable editorTable = datasetEditor.getEditorTable();
            int modelColumnIndex = columnInfo.getColumnIndex();
            if (editorTable != null) {
                int tableColumnIndex = editorTable.convertColumnIndexToView(modelColumnIndex);
                editorTable.sort(tableColumnIndex, SortDirection.DESCENDING, false);
            }
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.