| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.fest.swing.format; |
| 17 |
|
|
| 18 |
|
import static java.lang.String.valueOf; |
| 19 |
|
import static org.fest.util.Strings.concat; |
| 20 |
|
import static org.fest.util.Strings.quote; |
| 21 |
|
|
| 22 |
|
import java.awt.Component; |
| 23 |
|
|
| 24 |
|
import javax.swing.JTable; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@link |
| 28 |
|
|
| 29 |
|
@author |
| 30 |
|
@author |
| 31 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 32 |
|
public class JTableFormatter extends ComponentFormatterTemplate { |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
@link |
| 36 |
|
@link |
| 37 |
|
@param |
| 38 |
|
@return |
| 39 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 40 |
2551
|
protected String doFormat(Component c) {... |
| 41 |
2551
|
JTable table = (JTable)c; |
| 42 |
2551
|
return concat( |
| 43 |
|
table.getClass().getName(), "[", |
| 44 |
|
"name=", quote(table.getName()), ", ", |
| 45 |
|
"rowCount=", valueOf(table.getRowCount()), ", ", |
| 46 |
|
"columnCount=", valueOf(table.getColumnCount()), ", ", |
| 47 |
|
"enabled=", valueOf(table.isEnabled()), ", ", |
| 48 |
|
"visible=", valueOf(table.isVisible()), ", ", |
| 49 |
|
"showing=", valueOf(table.isShowing()), |
| 50 |
|
"]" |
| 51 |
|
); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
|
| 55 |
|
@link |
| 56 |
|
@return |
| 57 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 58 |
2875
|
public Class<? extends Component> targetType() {... |
| 59 |
2875
|
return JTable.class; |
| 60 |
|
} |
| 61 |
|
} |