Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 98 |  | Methods: | 10
| NCLOC: | 36 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
TableModelWrapper.java | - | 45.5% | 40% | 42.9% |

1 |  |
     /*
2 |  |
      * brownies and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      *
5 |  |
      * Created on 2004/05/27 3:18:00
6 |  |
      */
7 |  |
     package org.asyrinx.brownie.swing.table.wrapper;
8 |  |
9 |  |
     import javax.swing.event.TableModelListener;
10 |  |
     import javax.swing.table.TableModel;
11 |  |
12 |  |
     /**
13 |  |
      * @author akima
14 |  |
      */
15 |  |
     public class TableModelWrapper implements TableModel {
16 |  |
17 |  |
         /**
18 |  |
          *
19 |  |
          */
20 | 4 |
         public TableModelWrapper(TableModel model) {
21 | 4 |
             super();
22 | 4 |
             this.model = model;
23 |  |
         }
24 |  |
25 |  |
         protected final TableModel model;
26 |  |
27 |  |
         /**
28 |  |
          * @param l
29 |  |
          */
30 | 0 |
         public void addTableModelListener(TableModelListener l) {
31 | 0 |
             model.addTableModelListener(l);
32 |  |
         }
33 |  |
34 |  |
         /**
35 |  |
          * @param columnIndex
36 |  |
          * @return
37 |  |
          */
38 | 0 |
         public Class getColumnClass(int columnIndex) {
39 | 0 |
             return model.getColumnClass(columnIndex);
40 |  |
         }
41 |  |
42 |  |
         /**
43 |  |
          * @return
44 |  |
          */
45 | 36 |
         public int getColumnCount() {
46 | 36 |
             return model.getColumnCount();
47 |  |
         }
48 |  |
49 |  |
         /**
50 |  |
          * @param columnIndex
51 |  |
          * @return
52 |  |
          */
53 | 0 |
         public String getColumnName(int columnIndex) {
54 | 0 |
             return model.getColumnName(columnIndex);
55 |  |
         }
56 |  |
57 |  |
         /**
58 |  |
          * @return
59 |  |
          */
60 | 0 |
         public int getRowCount() {
61 | 0 |
             return model.getRowCount();
62 |  |
         }
63 |  |
64 |  |
         /**
65 |  |
          * @param rowIndex
66 |  |
          * @param columnIndex
67 |  |
          * @return
68 |  |
          */
69 | 1 |
         public Object getValueAt(int rowIndex, int columnIndex) {
70 | 1 |
             return model.getValueAt(rowIndex, columnIndex);
71 |  |
         }
72 |  |
73 |  |
         /**
74 |  |
          * @param rowIndex
75 |  |
          * @param columnIndex
76 |  |
          * @return
77 |  |
          */
78 | 0 |
         public boolean isCellEditable(int rowIndex, int columnIndex) {
79 | 0 |
             return model.isCellEditable(rowIndex, columnIndex);
80 |  |
         }
81 |  |
82 |  |
         /**
83 |  |
          * @param l
84 |  |
          */
85 | 0 |
         public void removeTableModelListener(TableModelListener l) {
86 | 0 |
             model.removeTableModelListener(l);
87 |  |
         }
88 |  |
89 |  |
         /**
90 |  |
          * @param aValue
91 |  |
          * @param rowIndex
92 |  |
          * @param columnIndex
93 |  |
          */
94 | 1 |
         public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
95 | 1 |
             model.setValueAt(aValue, rowIndex, columnIndex);
96 |  |
         }
97 |  |
98 |  |
     }