01: package abbot.editor.recorder;
02:
03: import java.awt.*;
04:
05: import abbot.script.*;
06:
07: /**
08: * Record basic semantic events you might find on an Window. <p>
09: */
10: public class DialogRecorder extends WindowRecorder {
11:
12: public DialogRecorder(Resolver resolver) {
13: super (resolver);
14: }
15:
16: protected Step createResize(Window window, Dimension size) {
17: Step step = null;
18: if (((Dialog) window).isResizable()) {
19: ComponentReference ref = getResolver().addComponent(window);
20: step = new Action(getResolver(), null, "actionResize",
21: new String[] { ref.getID(),
22: String.valueOf(size.width),
23: String.valueOf(size.height), },
24: Dialog.class);
25: }
26: return step;
27: }
28: }
|