Examples of convertColumnIndexToView()


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

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

        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

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

        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

Examples of javax.swing.JTable.convertColumnIndexToView()

  public void test(TestHarness harness)     
  {
    harness.checkPoint("convertColumnIndexToView()");
    DefaultTableModel m1 = new DefaultTableModel(4, 6);
    JTable t = new JTable(m1);
    harness.check(t.convertColumnIndexToView(0), 0);
    harness.check(t.convertColumnIndexToView(-1), -1);
    harness.check(t.convertColumnIndexToView(6), -1);
    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

  {
    harness.checkPoint("convertColumnIndexToView()");
    DefaultTableModel m1 = new DefaultTableModel(4, 6);
    JTable t = new JTable(m1);
    harness.check(t.convertColumnIndexToView(0), 0);
    harness.check(t.convertColumnIndexToView(-1), -1);
    harness.check(t.convertColumnIndexToView(6), -1);
    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

    harness.checkPoint("convertColumnIndexToView()");
    DefaultTableModel m1 = new DefaultTableModel(4, 6);
    JTable t = new JTable(m1);
    harness.check(t.convertColumnIndexToView(0), 0);
    harness.check(t.convertColumnIndexToView(-1), -1);
    harness.check(t.convertColumnIndexToView(6), -1);
    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
    harness.check(t.convertColumnIndexToView(0), 4);
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

    DefaultTableModel m1 = new DefaultTableModel(4, 6);
    JTable t = new JTable(m1);
    harness.check(t.convertColumnIndexToView(0), 0);
    harness.check(t.convertColumnIndexToView(-1), -1);
    harness.check(t.convertColumnIndexToView(6), -1);
    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
    harness.check(t.convertColumnIndexToView(0), 4);
    harness.check(t.convertColumnIndexToView(1), 0);
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

    harness.check(t.convertColumnIndexToView(6), -1);
    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
    harness.check(t.convertColumnIndexToView(0), 4);
    harness.check(t.convertColumnIndexToView(1), 0);
    harness.check(t.convertColumnIndexToView(2), 1);
    harness.check(t.convertColumnIndexToView(3), 2);
    harness.check(t.convertColumnIndexToView(4), 3);
    harness.check(t.convertColumnIndexToView(5), 5);
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

    harness.check(t.convertColumnIndexToView(999), -1);

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
    harness.check(t.convertColumnIndexToView(0), 4);
    harness.check(t.convertColumnIndexToView(1), 0);
    harness.check(t.convertColumnIndexToView(2), 1);
    harness.check(t.convertColumnIndexToView(3), 2);
    harness.check(t.convertColumnIndexToView(4), 3);
    harness.check(t.convertColumnIndexToView(5), 5);
  }
View Full Code Here

Examples of javax.swing.JTable.convertColumnIndexToView()

    TableColumnModel tcm = t.getColumnModel();
    tcm.moveColumn(0, 4);
    harness.check(t.convertColumnIndexToView(0), 4);
    harness.check(t.convertColumnIndexToView(1), 0);
    harness.check(t.convertColumnIndexToView(2), 1);
    harness.check(t.convertColumnIndexToView(3), 2);
    harness.check(t.convertColumnIndexToView(4), 3);
    harness.check(t.convertColumnIndexToView(5), 5);
  }
}
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.