If a prototype value is provided (see {@link #setPrototypeValue(Object)}, then the default implementation of getColumnClass will inspect the prototype object to determine the Class of the object in that column (by looking at the type of the property in that column). If no prototype is provided, then getColumnClass will inspect the current table data in order to determine the class of object in that column. If there are no non-null values in the column, then getColumnClass will return Object.class, which is not very usable. In that case, you should probably override {@link #getColumnClass(int)}.
You can specify individual comparators for columns using {@link #setComparator(int,Comparator)}. For any column that doesn't have a comparator installed, a default comparable comparator will be handed out by {@link #getColumnComparator(int)}.
|
|
|
|
|
|
|
|