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