Package org.noos.xing.mydoggy.itest

Examples of org.noos.xing.mydoggy.itest.ComponentAdapter


    }

    public ComponentAdapter moveTo(int x, int y) {
        Point to = new Point(x, y);
        SwingUtilities.convertPointToScreen(to, component);
        ComponentAdapter componentAdapter = moveToInternal(to);
        doDelay();
        return componentAdapter;
    }
View Full Code Here


    public ComponentAdapter lookup(String componentName) {
        return lookup(new NamedComponentFilter(componentName));
    }

    public ComponentAdapter lookup(ComponentFilter componentFilter) {
        ComponentAdapter result = lookupInternal(componentFilter);
        if (result == null) {
            for (Window window : getTopContainers()) {
                if (!roots.contains(window))
                    roots.add(window);
            }
View Full Code Here

        // First
        restoreWorkspace();
        componentLookuper.lookup().moveToCenter();

        showTip("<html>Let's go to <br>show Tool 3", 1000);
        ComponentAdapter ca = componentLookuper.lookup(new NamedComponentFilter("toolWindow.rb.Tool 3"));
        ca.moveToCenter();
        showTip("<html>Now : <br>Left Mouse Click", 1000);
        ca.click(ComponentAdapter.MouseButton.LEFT);

        // Second
        restoreWorkspace();
        componentLookuper.lookup().moveToCenter();

        showTip("<html>Let's go to <br>show Tool 3<br> using the popup menu", 1000);
        ca = componentLookuper.lookup(new NamedComponentFilter("toolWindow.rb.Tool 3"));
        ca.moveToCenter();
        showTip("<html>Now : <br>Right Mouse Click", 1000);
        ca.click(ComponentAdapter.MouseButton.RIGHT);
        ca = componentLookuper.lookup(new NamedComponentFilter("toolWindow.popup.visible.Tool 3"));
        ca.moveToCenter();
        showTip("<html>Now : <br>Left Mouse Click", 1000);
        ca.click(ComponentAdapter.MouseButton.LEFT);

        restoreWorkspace();
        componentLookuper.lookup().moveToCenter();

        showTip("<html>Let's go to <br>see aggregate mode", 1000);
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.itest.ComponentAdapter

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.