Clover Coverage Report - FEST Swing 1.2
Coverage timestamp: Tue Jun 1 2010 15:19:25 PDT
0   87   0   -
0   12   -   0
0     -  
1    
 
  JTableCellReader       Line # 34 0 - 0 0 - -1.0
 
No Tests
 
1    /*
2    * Created on Apr 14, 2008
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5    * the License. You may obtain a copy of the License at
6    *
7    * http://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10    * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11    * specific language governing permissions and limitations under the License.
12    *
13    * Copyright @2008-2010 the original author or authors.
14    */
15    package org.fest.swing.cell;
16   
17    import java.awt.Color;
18    import java.awt.Font;
19   
20    import javax.swing.JTable;
21   
22    import org.fest.swing.annotation.RunsInCurrentThread;
23   
24    /**
25    * Understands reading the internal value of a cell in a <code>{@link JTable}</code> as expected in a test.
26    * <p>
27    * <b>Note:</b> methods in this interface are <b>not</b> guaranteed to be executed in the event dispatch thread (EDT.)
28    * Clients are responsible for invoking them in the EDT.
29    * </p>
30    *
31    * @author Alex Ruiz
32    */
33    @RunsInCurrentThread
 
34    public interface JTableCellReader {
35   
36    /**
37    * Returns the internal value of a cell in a <code>{@link JTable}</code> as expected in a test.
38    * <p>
39    * <b>Note:</b> Implementations of this method <b>may not</b> guaranteed to be executed in the event dispatch thread
40    * (EDT.) Clients are responsible for invoking this method in the EDT.
41    * </p>
42    * @param table the given <code>JTable</code>.
43    * @param row the row index of the cell.
44    * @param column the column index of the cell.
45    * @return the internal value of a cell in a <code>JTable</code> as expected in a test.
46    */
47    String valueAt(JTable table, int row, int column);
48   
49    /**
50    * Returns the font of the cell renderer for the given table cell.
51    * <p>
52    * <b>Note:</b> Implementations of this method <b>may not</b> guaranteed to be executed in the event dispatch thread
53    * (EDT.) Clients are responsible for invoking this method in the EDT.
54    * </p>
55    * @param table the given <code>JTable</code>.
56    * @param row the row index of the cell.
57    * @param column the column index of the cell.
58    * @return the font of the cell renderer for the given table cell.
59    */
60    Font fontAt(JTable table, int row, int column);
61   
62    /**
63    * Returns the background color of the cell renderer for the given table cell.
64    * <p>
65    * <b>Note:</b> Implementations of this method <b>may not</b> guaranteed to be executed in the event dispatch thread
66    * (EDT.) Clients are responsible for invoking this method in the EDT.
67    * </p>
68    * @param table the given <code>JTable</code>.
69    * @param row the row index of the cell.
70    * @param column the column index of the cell.
71    * @return the background color of the cell renderer for the given table cell.
72    */
73    Color backgroundAt(JTable table, int row, int column);
74   
75    /**
76    * Returns the foreground color of the cell renderer for the given table cell.
77    * <p>
78    * <b>Note:</b> Implementations of this method <b>may not</b> guaranteed to be executed in the event dispatch thread
79    * (EDT.) Clients are responsible for invoking this method in the EDT.
80    * </p>
81    * @param table the given <code>JTable</code>.
82    * @param row the row index of the cell.
83    * @param column the column index of the cell.
84    * @return the foreground color of the cell renderer for the given table cell.
85    */
86    Color foregroundAt(JTable table, int row, int column);
87    }