Package com.pcmsolutions.system.callback

Examples of com.pcmsolutions.system.callback.CallbackTask


                    true, StaticActivityContext.FALSE, new Impl_DesktopNodeDescriptor(false)));
        }
    }

    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


            CallbackTaskResult ctr = ct.execute();
        }
    }

    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;
            }
        });
        CallbackTaskResult ctr = ct.execute();
    }
View Full Code Here

        });
        CallbackTaskResult ctr = ct.execute();
    }

    public static Object executeViewTask(CallbackTaskRunnable ctr) throws Exception {
        CallbackTask ct = new CallbackTask();
        ct.init(ctr);
        CallbackTaskResult ctres = ct.execute();
        if (ctres.suceeded())
            return ctres.getResult();
        else
            throw ctres.getException();
    }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.system.callback.CallbackTask

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.