|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| DialogRecorder.java | 50% | 66.7% | 100% | 70% |
|
||||||||||||||
| 1 |
package abbot.editor.recorder;
|
|
| 2 |
|
|
| 3 |
import java.awt.*;
|
|
| 4 |
|
|
| 5 |
import abbot.script.*;
|
|
| 6 |
|
|
| 7 |
/**
|
|
| 8 |
* Record basic semantic events you might find on an Window. <p>
|
|
| 9 |
*/
|
|
| 10 |
public class DialogRecorder extends WindowRecorder { |
|
| 11 |
|
|
| 12 | 29 |
public DialogRecorder(Resolver resolver) {
|
| 13 | 29 |
super(resolver);
|
| 14 |
} |
|
| 15 |
|
|
| 16 | 2 |
protected Step createResize(Window window, Dimension size) {
|
| 17 | 2 |
Step step = null;
|
| 18 | 2 |
if (((Dialog)window).isResizable()) {
|
| 19 | 0 |
ComponentReference ref = getResolver().addComponent(window); |
| 20 | 0 |
step = new Action(getResolver(),
|
| 21 |
null, "actionResize", |
|
| 22 |
new String[] { ref.getID(),
|
|
| 23 |
String.valueOf(size.width), |
|
| 24 |
String.valueOf(size.height), |
|
| 25 |
}, Dialog.class);
|
|
| 26 |
} |
|
| 27 | 2 |
return step;
|
| 28 |
} |
|
| 29 |
} |
|
| 30 |
|
|
| 31 |
|
|
||||||||||