Package net.sourceforge.marathon.event

Examples of net.sourceforge.marathon.event.IPredicate


            Rectangle rectangle;
            if (windowName == null) {
                Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
                rectangle = new Rectangle(0, 0, screenSize.width, screenSize.height);
            } else if (component == null) {
                IPredicate windowTest = new SameTitle(windowName, windowMonitor.getNamingStrategy());
                Window window = windowMonitor.getWindow(windowTest);
                Dimension windowSize = window.getSize();
                rectangle = new Rectangle(window.getX(), window.getY(), windowSize.width, windowSize.height);
            } else {
                Point componentPosition = component.getPosition();
View Full Code Here


            notify();
        }
    }

    public void waitForWindowToOpen(long timeout, final IPredicate test, IScriptModelServerPart scriptModel) {
        waitForWindow(timeout, new IPredicate() {
            public boolean evaluate(Object obj) {
                return windowMonitor.getWindow(test) != null;
            }

            public String toString() {
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.event.IPredicate

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.