Examples of releaseControl()


Examples of org.jdesktop.wonderland.modules.appbase.client.ControlArb.releaseControl()

                    // this is a more elegant solution.
                    if (app != null) {
                        ControlArb controlArb = app.getControlArb();
                        if (controlArb != null) {
                            if (controlArb.hasControl()) {
                                controlArb.releaseControl();
                            }
                        }
                    }
                }
                break;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.appbase.client.ControlArb.releaseControl()

            case TOGGLE_CONTROL:
                ControlArb controlArb = view.getWindow().getApp().getControlArb();
                if (controlArb.hasControl()) {
                    logger.info("Release control");
                    controlArb.releaseControl();
                } else {
                    logger.info("Take control");
                    controlArb.takeControl();
                }
                break;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.appbase.client.ControlArb.releaseControl()

                // Perform the control toggle immediately
                ControlArb controlArb = app.getControlArb();
                if (controlArb != null) {
                    if (controlArb.hasControl()) {
                        controlArb.releaseControl();
                    } else {
                        controlArb.takeControl();
                    }
                }
                return EventAction.DISCARD;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.