Logo Search packages:      
Sourcecode: jabref version File versions  Download package

int net::sf::jabref::gui::MainTableFormat::getColumnIndex ( String  colName  )  [inline]

Finds the column index for the given column name.

colName The column name
The column index if any, or -1 if no column has that name.

Definition at line 100 of file MainTableFormat.java.

Referenced by net::sf::jabref::gui::MainTable::setupComparatorChooser().

        for (int i=0; i<columns.length; i++) {
            // TODO: is the following line correct with [0] ?
            if (columns[i][0].equalsIgnoreCase(colName))
                return i+padleft;
        return -1;

Generated by  Doxygen 1.6.0   Back to index