Package org.jemmy.env

Examples of org.jemmy.env.Environment


                cns = wrapperClass.getConstructor(Environment.class, cls);
            } catch (NoSuchMethodException e) {
            }
        } while ((cls = cls.getSuperclass()) != null);
        if (cns != null) {
            return (Wrap<T>) cns.newInstance(new Environment(env), control);
        } else {
            throw new WrapperException(controlClass, wrapperClass);
        }
    }
View Full Code Here


        awtWrapper = wrapper;
    }

    public static AWT getAWT() {
        if (AWT_ROOT == null) {
            Environment env = new Environment(Environment.getEnvironment());
            ControlHierarchy hierarchy = new AWTHierarchy();
            DefaultWrapper wrapper = new DefaultWrapper(env);
            wrapper.addAnnotated(AWTComponentOperator.class, FrameOperator.class,
                    SwingText.class, SwingLabel.class, SwingScroll.class, JCheckBoxOperator.class,
                    AbstractButtonOperator.class);
View Full Code Here

    private Environment env;
    private SceneWrapper wrapper;
    private SceneList scenes;

    private Root() {
        this.env = new Environment(Environment.getEnvironment());
        this.env.setExecutor(QueueExecutor.EXECUTOR);
        if (Environment.getEnvironment().getInputFactory() == null) {
            Environment.getEnvironment().setInputFactory(new AWTRobotInputFactory());
        }
        Environment.getEnvironment().setProperty(THEME_FACTORY, ThemeDriverFactory.newInstance());
View Full Code Here

        this.env = env;
    }

    public <T> Wrap<? extends T> wrap(Class<T> controlClass, T control) {
        if (controlClass.isAssignableFrom(Scene.class)) {
            return new SceneWrap(new Environment(env), (Scene) control);
        }
        return null;
    }
View Full Code Here

                    cns = wrapperClass.getConstructor(Environment.class, cls);
                } catch (NoSuchMethodException e) {
                }
            } while (cns == null && (cls = cls.getSuperclass()) != null);
            if (cns != null) {
                return (Wrap<T>) cns.newInstance(new Environment(getEnvironment()), control);
            } else {
                throw new WrapperException(controlClass, wrapperClass);
            }
        } else {
            return super.doWrap(control, controlClass, wrapperClass);
View Full Code Here

TOP

Related Classes of org.jemmy.env.Environment

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.