Package com.pcmsolutions.system.callback

Examples of com.pcmsolutions.system.callback.CallbackTask.execute()


            ct.init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().addDesktopElement(elem));
                }
            });
            CallbackTaskResult ctr = ct.execute();
        }
    }

    public static void modifyBranch(final DesktopBranch branch, final boolean activate, final int clipIndex) {
        CallbackTask ct = new CallbackTask();
View Full Code Here


            public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                ZoeosFrame.getInstance().getZDesktopManager().modifyBranch(branch, activate, clipIndex);
                return null;
            }
        });
        CallbackTaskResult ctr = ct.execute();
    }

    public static Object executeViewTask(CallbackTaskRunnable ctr) throws Exception {
        CallbackTask ct = new CallbackTask();
        ct.init(ctr);
View Full Code Here

    }

    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
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.