Package org.jemmy.fx

Examples of org.jemmy.fx.SceneWrap


                    }
                }.dispatch(getEnvironment());
                if (new_selected_scene == null) {
                    throw new JemmyException("The menu bar can not be expanded", getControl());
                }
                Wrap<? extends Scene> popup_scene_wrap = new SceneWrap(getEnvironment(), new_selected_scene);
                Wrap<Node> item = popup_scene_wrap.as(Parent.class, Node.class).lookup(new LookupCriteria<Node>() {
                    @Override
                    public boolean check(Node control) {
                        return control.equals(state);
                    }
                }).wrap(0);
View Full Code Here


        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;
                        }
View Full Code Here

TOP

Related Classes of org.jemmy.fx.SceneWrap

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.