View Javadoc

1   // %1117664849218:hoplugins.conv%
2   package hoplugins.conv;
3   
4   import java.util.Vector;
5   
6   import javax.swing.table.DefaultTableModel;
7   
8   
9   /***
10   * DOCUMENT ME!
11   *
12   * @author Thorsten Dietz
13   */
14  final class SelectObjectTableModel extends DefaultTableModel {
15      //~ Constructors -------------------------------------------------------------------------------
16  
17      /***
18       * Creates a new SelectObjectTableModel object.
19       *
20       * @param daten TODO Missing Constructuor Parameter Documentation
21       * @param headers TODO Missing Constructuor Parameter Documentation
22       */
23      protected SelectObjectTableModel(Object[][] daten, Object[] headers) {
24          super(daten, headers);
25      }
26  
27      //~ Methods ------------------------------------------------------------------------------------
28  
29      /***
30       * TODO Missing Method Documentation
31       *
32       * @param row TODO Missing Method Parameter Documentation
33       * @param col TODO Missing Method Parameter Documentation
34       *
35       * @return TODO Missing Return Method Documentation
36       */
37      public boolean isCellEditable(int row, int col) {
38          return (col == 0) ? true : false;
39      }
40  
41      /***
42       * TODO Missing Method Documentation
43       *
44       * @param col TODO Missing Method Parameter Documentation
45       *
46       * @return TODO Missing Return Method Documentation
47       */
48      public Class getColumnClass(int col) {
49          Vector vector = (Vector) dataVector.elementAt(0);
50          return (vector != null) ? vector.elementAt(col).getClass() : null;
51      }
52  }