1
2 package hoplugins.teamAnalyzer.ui.model;
3
4 import hoplugins.commons.ui.BaseTableModel;
5
6 import java.util.Vector;
7
8 import javax.swing.ImageIcon;
9
10
11 /***
12 * Custom RatingTable model
13 *
14 * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
15 */
16 public class UiRecapTableModel extends BaseTableModel {
17
18
19 /***
20 * Creates a new UiRecapTableModel object.
21 *
22 * @param vector Vector of table data
23 * @param vector2 Vector of column names
24 */
25 public UiRecapTableModel(Vector vector, Vector vector2) {
26 super(vector, vector2);
27 }
28
29 /***
30 * Creates a new instance of UiFilterTableModel
31 */
32 public UiRecapTableModel() {
33 super();
34 }
35
36
37
38 /***
39 * Returns the column class type
40 *
41 * @param column
42 *
43 * @return
44 */
45 public Class getColumnClass(int column) {
46 if (column == 1) {
47 return ImageIcon.class;
48 }
49
50 return super.getColumnClass(column);
51 }
52 }