| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
package org.fest.swing.driver; |
| 16 |
|
|
| 17 |
|
import static org.fest.swing.edt.GuiActionRunner.execute; |
| 18 |
|
|
| 19 |
|
import javax.swing.JSpinner; |
| 20 |
|
|
| 21 |
|
import org.fest.swing.annotation.RunsInEDT; |
| 22 |
|
import org.fest.swing.edt.GuiQuery; |
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
@link |
| 27 |
|
|
| 28 |
|
@author |
| 29 |
|
@author |
| 30 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
| 31 |
|
final class JSpinnerValueQuery { |
| 32 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 33 |
16
|
@RunsInEDT... |
| 34 |
|
static Object valueOf(final JSpinner spinner) { |
| 35 |
16
|
return execute(new GuiQuery<Object>() { |
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 36 |
16
|
protected Object executeInEDT() {... |
| 37 |
16
|
return spinner.getValue(); |
| 38 |
|
} |
| 39 |
|
}); |
| 40 |
|
} |
| 41 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 42 |
|
private JSpinnerValueQuery() {}... |
| 43 |
|
} |