package com.onaro.util.jfc.tables.filter; import javax.swing.*; /** * Used by {@link com.onaro.util.jfc.tables.FilterTable} to find the correct mapping between a column in the * {@link javax.swing.table.TableModel} and a column in the {@link JTable}. This mapping is needed to workaround * column reordering and columns that aren't part of the model (such as in grouping table). */ public interface ColumnIndexConvertor { /** * Convernts a column index in {@link JTable} to a column index in {@link javax.swing.table.TableModel}. * @param table the JTable for which the conversion is needed * @param columnIndex the index in the JTable to be converted * @return an index in the table's model */ public int convertColumnIndexToModel(JTable table, int columnIndex); }