| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.fest.swing.driver; |
| 17 |
|
|
| 18 |
|
import static org.fest.swing.driver.ComponentStateValidator.validateIsEnabledAndShowing; |
| 19 |
|
import static org.fest.swing.format.Formatting.format; |
| 20 |
|
import static org.fest.util.Strings.concat; |
| 21 |
|
|
| 22 |
|
import java.awt.Component; |
| 23 |
|
|
| 24 |
|
import javax.swing.JComboBox; |
| 25 |
|
|
| 26 |
|
import org.fest.swing.annotation.RunsInCurrentThread; |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
@link |
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
@see |
| 36 |
|
@see |
| 37 |
|
|
| 38 |
|
@author |
| 39 |
|
@author |
| 40 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 41 |
|
final class JComboBoxAccessibleEditorValidator { |
| 42 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 43 |
19
|
@RunsInCurrentThread... |
| 44 |
|
static void validateEditorIsAccessible(JComboBox comboBox) { |
| 45 |
19
|
validateIsEnabledAndShowing(comboBox); |
| 46 |
13
|
if (!comboBox.isEditable()) |
| 47 |
3
|
throw new IllegalStateException(concat("Expecting component ", format(comboBox), " to be editable")); |
| 48 |
|
} |
| 49 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 50 |
|
private JComboBoxAccessibleEditorValidator() {}... |
| 51 |
|
} |