|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| JMenuItemTester.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package abbot.tester;
|
|
| 2 |
|
|
| 3 |
import java.awt.Component;
|
|
| 4 |
|
|
| 5 |
import javax.swing.JMenuItem;
|
|
| 6 |
|
|
| 7 |
/** Provide action methods and assertions for {@link JMenuItem}s. */
|
|
| 8 |
|
|
| 9 |
public class JMenuItemTester extends AbstractButtonTester { |
|
| 10 |
|
|
| 11 | 0 |
public String deriveTag(Component comp) {
|
| 12 |
// If the component class is custom, don't provide a tag
|
|
| 13 | 0 |
if (isCustom(comp.getClass()))
|
| 14 | 0 |
return null; |
| 15 |
|
|
| 16 | 0 |
return ((JMenuItem)comp).getText();
|
| 17 |
} |
|
| 18 |
} |
|
| 19 |
|
|
||||||||||