Package org.jemmy.interfaces

Examples of org.jemmy.interfaces.Parent


                    public void run(Object... parameters) {
                        setResult(!((MenuButton)menuWrap.getControl()).isShowing());
                    }
                }.dispatch(getEnvironment())) {
                if (SplitMenuButton.class.isAssignableFrom(menuWrap.getControl().getClass())) {
                    Parent parent = (Parent) menuWrap.as(Parent.class, Node.class);
                    parent.lookup(Node.class, new ByStyleClass<Node>("arrow-button")).wrap().mouse().click();
                } else {
                    menuWrap.mouse().click();
                }
            }
        }

        Wrap<? extends Scene> popup_scene_wrap = Root.ROOT.lookup(new LookupCriteria<Scene>() {
            public boolean check(Scene scene) {
                if (!(scene.getWindow() instanceof ContextMenu)) {
                    return false;
                }
                Wrap<Scene> scene_wrap = new SceneWrap(getEnvironment(), scene);
                Parent<Node> parent = scene_wrap.as(Parent.class, Node.class);
                return parent.lookup(Node.class, new LookupCriteria<Node>() {
                    public boolean check(Node node) {
                        if (node.getProperties().get(Menu.class) == getControl().getParentMenu()) {
                            return true;
                        }
                        return false;
View Full Code Here

TOP

Related Classes of org.jemmy.interfaces.Parent

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.