01: package abbot.editor.recorder;
02:
03: import java.awt.AWTEvent;
04:
05: import abbot.script.Resolver;
06:
07: /**
08: * Override AbstractButton behavior, since we expect to grab a menu selection
09: * instead of a click.
10: */
11: public class JMenuItemRecorder extends AbstractButtonRecorder {
12:
13: public JMenuItemRecorder(Resolver resolver) {
14: super (resolver);
15: }
16:
17: /** Regular clicks get treated as a menu event. */
18: protected boolean isMenuEvent(AWTEvent e) {
19: return isClick(e);
20: }
21: }
|