Package org.noos.xing.mydoggy.itest.impl

Examples of org.noos.xing.mydoggy.itest.impl.NamedComponentFilter


                .moveToCenter()
                .showTip(tip);
    }

    protected ComponentAdapter drag(String from, String to) {
        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        return componentLookuper.lookup(new NamedComponentFilter(to)).moveToCenter().release(ComponentAdapter.MouseButton.LEFT);
    }
View Full Code Here


        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        return componentLookuper.lookup(new NamedComponentFilter(to)).moveToCenter().release(ComponentAdapter.MouseButton.LEFT);
    }

    protected ComponentAdapter drag(String from, String to, AggregationPosition aggregationPosition) {
        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        switch (aggregationPosition) {
            case RIGHT:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.RIGHT).release(ComponentAdapter.MouseButton.LEFT);
            case LEFT:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.LEFT).release(ComponentAdapter.MouseButton.LEFT);
            case TOP:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.TOP).release(ComponentAdapter.MouseButton.LEFT);
            case BOTTOM:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.BOTTOM).release(ComponentAdapter.MouseButton.LEFT);
            default:
                return drag(from, to);
        }
    }
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);
        clickOnRepresentativeButton("Tool 1");
        clickOnRepresentativeButton("Tool 3", ComponentAdapter.MouseButton.RIGHT);
        componentLookuper.lookup(new NamedComponentFilter("toolWindow.popup.aggregate.Tool 3"))
                .moveToCenter()
                .click(ComponentAdapter.MouseButton.LEFT);
    }
View Full Code Here

                .moveToCenter()
                .showTip(tip);
    }

    protected ComponentAdapter drag(String from, String to) {
        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        return componentLookuper.lookup(new NamedComponentFilter(to)).moveToCenter().release(ComponentAdapter.MouseButton.LEFT);
    }
View Full Code Here

        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        return componentLookuper.lookup(new NamedComponentFilter(to)).moveToCenter().release(ComponentAdapter.MouseButton.LEFT);
    }

    protected ComponentAdapter drag(String from, String to, AggregationPosition aggregationPosition) {
        componentLookuper.lookup(new NamedComponentFilter(from)).moveToCenter().press(ComponentAdapter.MouseButton.LEFT);
        switch (aggregationPosition) {
            case RIGHT:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.RIGHT).release(ComponentAdapter.MouseButton.LEFT);
            case LEFT:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.LEFT).release(ComponentAdapter.MouseButton.LEFT);
            case TOP:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.TOP).release(ComponentAdapter.MouseButton.LEFT);
            case BOTTOM:
                return componentLookuper.lookup(new NamedComponentFilter(to)).moveTo(ComponentAdapter.Location.BOTTOM).release(ComponentAdapter.MouseButton.LEFT);
            default:
                return drag(from, to);
        }
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.itest.impl.NamedComponentFilter

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.