|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ButtonRecorder.java | - | 0% | 0% | 0% |
|
1 |
package abbot.editor.recorder;
|
|
2 |
|
|
3 |
import java.awt.*;
|
|
4 |
import java.awt.event.*;
|
|
5 |
|
|
6 |
import abbot.Log;
|
|
7 |
import abbot.script.*;
|
|
8 |
|
|
9 |
/**
|
|
10 |
* Record simple clicks on a Button component. <p>
|
|
11 |
*/
|
|
12 |
public class ButtonRecorder extends ComponentRecorder { |
|
13 |
|
|
14 | 0 |
public ButtonRecorder(Resolver resolver) {
|
15 | 0 |
super(resolver);
|
16 |
} |
|
17 |
|
|
18 |
/** Don't need to store any position or modifier information. */
|
|
19 | 0 |
protected Step createClick(Component target, int x, int y, |
20 |
int mods, int count) { |
|
21 | 0 |
ComponentReference cr = getResolver().addComponent(target); |
22 | 0 |
return new Action(getResolver(), null, "actionClick", |
23 |
new String[] { cr.getID() });
|
|
24 |
} |
|
25 |
} |
|
26 |
|
|
27 |
|
|