Examples of CallbackTaskRunnable


Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

    public static void openDesktopElements(final DesktopElement[] elems) {
        CallbackTask ct = new CallbackTask();
        for (int i = 0; i < elems.length; i++) {
            final DesktopElement elem = elems[i];
            ct.init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().addDesktopElement(elem));
                }
            });
            CallbackTaskResult ctr = ct.execute();
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

        }
    }

    public static void modifyBranch(final DesktopBranch branch, final boolean activate, final int clipIndex) {
        CallbackTask ct = new CallbackTask();
        ct.init(new CallbackTaskRunnable() {
            public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                ZoeosFrame.getInstance().getZDesktopManager().modifyBranch(branch, activate, clipIndex);
                return null;
            }
        });
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

        else
            throw ctres.getException();
    }

    public static DeviceDesktopElement[] getDeviceDesktopElements(final DeviceContext device) throws Exception {
        DesktopElement[] e = (DesktopElement[]) executeViewTask(new CallbackTaskRunnable() {
            public Object run() throws Exception {
                return ZoeosFrame.getInstance().getZDesktopManager().getDesktopElementTree(new ViewPath(ZDesktopManager.dockWORKSPACE, ViewFactory.provideDefaultDesktopNames(device)));
            }
        });
        DeviceDesktopElement[] de = new DeviceDesktopElement[e.length];
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

        public static DesktopElement makeDeviceWorkspaceDesktopElement(final DeviceContext device, final ViewInstance vi, final boolean isFloatable, final ActivityContext activityContext, final DesktopNodeDescriptor nd) {
            return new DeviceWorkspaceDesktopElement(vi, isFloatable, activityContext, nd, device);
        }

        protected CallbackTaskResult openView(final DesktopElement desktopElement, final boolean activate) {
            init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().addDesktopElement(desktopElement, activate));
                }
            });
            return execute();
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

            return execute();
        }

        // closed
        protected CallbackTaskResult closeView(final DesktopElement desktopElement) {
            init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().removeDesktopElement(desktopElement));
                }
            });
            return execute();
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTaskRunnable

            });
            return execute();
        }

        protected CallbackTaskResult closeView(final ViewPath vp) {
            init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().removeElement(vp));
                }
            });
            return execute();
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.