Beispiel #1
0
 protected Comparator getComparator(int column) {
   Class columnType = tableModel.getColumnClass(column);
   Comparator comparator = (Comparator) columnComparators.get(columnType);
   if (comparator != null) {
     return comparator;
   }
   if (Comparable.class.isAssignableFrom(columnType)) {
     return COMPARABLE_COMAPRATOR;
   }
   return LEXICAL_COMPARATOR;
 }
Beispiel #2
0
 public Class getColumnClass(int column) {
   return tableModel.getColumnClass(column);
 }
 public Class getColumnClass(int iColIndex) {
   return parentModel.getColumnClass(iColIndex);
 }