Package net.sourceforge.marathon.api

Examples of net.sourceforge.marathon.api.ComponentId


    private void click(int numberOfClicks) {
        click(numberOfClicks, false);
    }

    private void click(int clickCount, MouseEvent e, int record_click) {
        new ClickAction(new ComponentId("button.name"), e, record_click, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance()).play(component.getDummyResolver());
    }
View Full Code Here


        new ClickAction(new ComponentId("button.name"), e, record_click, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance()).play(component.getDummyResolver());
    }

    private void click(Point position, int clickCount, String modifiers, boolean isPopupTrigger) {
        new ClickAction(new ComponentId("button.name"), position, clickCount, modifiers, ActionType.CLICK, isPopupTrigger,
                ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()).play(component.getDummyResolver());

    }
View Full Code Here

public class UndoOperation extends AbstractMarathonAction {
    private static final long serialVersionUID = 1L;
    private AbstractMarathonAction action;

    public UndoOperation(AbstractMarathonAction action, IScriptModelServerPart scriptModel, WindowMonitor windowMonitor) {
        super(new ComponentId("UndoOperation"), scriptModel, windowMonitor);
        this.action = action;
    }
View Full Code Here

     * Return the ComponentId that can identify this component.
     *
     * @return componentId
     */
    public ComponentId getComponentId() {
        return new ComponentId(name, getComponentInfo());
    }
View Full Code Here

    private String menuItems = null;
    private KeyStroke ks = null;
    private String keyStrokeText = null;

    public SelectMenuAction(ArrayList<Object> menuList, IScriptModelServerPart scriptModel, WindowMonitor windowMonitor) {
        super(new ComponentId("SelectMenuAction"), scriptModel, windowMonitor);
        this.menuList = menuList;
    }
View Full Code Here

        super(new ComponentId("SelectMenuAction"), scriptModel, windowMonitor);
        this.menuList = menuList;
    }

    public SelectMenuAction(String menuItems, String keyStrokeText, IScriptModelServerPart scriptModel, WindowMonitor windowMonitor) {
        super(new ComponentId("SelectMenuAction"), scriptModel, windowMonitor);
        this.menuItems = menuItems;
        this.keyStrokeText = keyStrokeText;
    }
View Full Code Here

        this.keyStrokeText = keyStrokeText;
    }

    public SelectMenuAction(ArrayList<Object> menuList, KeyStroke ks, IScriptModelServerPart scriptModel,
            WindowMonitor windowMonitor) {
        super(new ComponentId("SelectMenuAction"), scriptModel, windowMonitor);
        this.menuList = menuList;
        this.ks = ks;
    }
View Full Code Here

                    public void perform() {
                        String[] items = menuItems.split("\\>\\>");
                        ArrayList<ComponentId> ids = new ArrayList<ComponentId>();
                        for (int i = 0; i < items.length; i++) {
                            String s = items[i];
                            ComponentId ci = new ComponentId(s);
                            ids.add(ci);
                        }
                        for (int i = 0; i < ids.size(); i++) {
                            if (i > 0)
                                new Snooze(delayInMS);

                            ComponentId id = (ComponentId) ids.get(i);

                            MComponent mc = resolver.getMComponentById(id);
                            Component c = null;
                            if (mc != null) {
                                c = mc.getComponent();
View Full Code Here

        MComponent component = new MComponent(null, "octo", null, WindowMonitor.getInstance()) {
            public String getComponentInfo() {
                return "pus";
            }
        };
        assertEquals(new ComponentId("octo", "pus"), component.getComponentId());
    }
View Full Code Here

    }

    @Test
    public void testGetTextReturnsNull() {
        MUnknownComponent component = (MUnknownComponent) dialog.getResolver(UnknownComponentResolver.class).getMComponentById(
                new ComponentId("label.name"));
        assertEquals(null, component.getText());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.api.ComponentId

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.