Package abbot.script

Examples of abbot.script.Action


    protected Step createDrop(Component comp, int x, int y) {
        Step step = null;
        if (comp != null) {
            ComponentReference cr = getResolver().addComponent(comp);
            String where = getLocationArgument(comp, x, y);
            step = new Action(getResolver(),
                              null, "actionDrop", new String[] {
                                  cr.getID(), where
                              }, comp.getClass());
        }
        return step;
View Full Code Here


    }

    protected Step createDrag(Component comp, int x, int y) {
        ComponentReference ref = getResolver().addComponent(comp);
        String where = getLocationArgument(comp, x, y);
        Step step = new Action(getResolver(),
                               null, "actionDrag", new String[] {
                                   ref.getID(), where,
                               }, comp.getClass());
        return step;
    }
View Full Code Here

            args.add(Robot.getMouseModifiers(mods));
            if (count > 1) {
                args.add(String.valueOf(count));
            }
        }
        return new Action(getResolver(), null, "actionClick",
                          (String[])args.toArray(new String[args.size()]),
                          target.getClass());
    }
View Full Code Here

                          target.getClass());
    }

    protected Step createInputMethod(ArrayList codes, String text) {
        Log.debug("Text length is " + text.length());
        return new Action(getResolver(), null,
                          "actionKeyString",
                          new String[] { text });
    }
View Full Code Here

TOP

Related Classes of abbot.script.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.