Examples of ICallback


Examples of callback.ICallback

                        //System.out.println(getThread() + "Using plugin " + pattern.pluginName);

                        List<String> urls = plugin.getLinks(url);
                        for (String url : urls)
                        {
                            download(url, localFolder, title, new ICallback() {
                                @Override
                                public void onDownloadFinished(File downloaded) {
                                    //Check if we should upload to Dropbox
                                    Dropbox dropbox = (Dropbox) conf.get(Configuration.DROPBOX_TAG);
View Full Code Here

Examples of net.cis.client.game.common.threading.ICallback

 
  protected void createDebugFighter(final String name, final Material main, final Material scnd, final Vector3f pos)
    {
    final IObjectController objCtrl = GlobalObjectStore.getObject(IObjectController.class);

    tcc.AddTimedCallback(new ICallback()
      {
      @Override
      public void execute()
        {
        SpaceObject so = SpaceobjectFactory.eINSTANCE.createAsteroid();
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        visit.setUser(person);

        // After logging in, go to the Home page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            getMyLibrary().activate();
        else
            callback.performCallback(cycle);

        // TODO: Set max age of cookie once TAPESTRY-438 is fixed.

        getCookieSource().writeCookieValue(COOKIE_NAME, email);
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        visit.setUser(person);

        // After logging in, go to the MyLibrary page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            cycle.activate("Home");
        else
            callback.performCallback(cycle);

        // I've found that failing to set a maximum age and a path means that
        // the browser (IE 5.0 anyway) quietly drops the cookie.

        IEngine engine = getEngine();
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        Visit visit = (Visit) cycle.getEngine().getVisit();

        if (visit != null && visit.isUserLoggedIn())
            return;

        ICallback callback = new PageCallback(getPage().getPageName());
        Login loginPage = (Login) cycle.getPage("Login");
        loginPage.setCallback(callback);
        cycle.activate(loginPage);
    }
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

    public void linkClicked(IRequestCycle cycle)
    {
        setVisited(true);

        ICallback callback = getCallback();

        setCallback(null);

        callback.performCallback(cycle);
    }
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        Guard guard = (Guard) cycle.getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new DirectCallback((IDirect) getComponent("link"), parameters);
            guard.setCallback(callback);
            cycle.activate(guard);
            return;
        }
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

    {
        Guard guard = (Guard) getRequestCycle().getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new PageCallback(this);
            guard.setCallback(callback);

            throw new PageRedirectException(guard);
        }
    }
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        Guard guard = (Guard) cycle.getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new DirectCallback((IDirect) getComponent("link"), parameters);
            guard.setCallback(callback);
            cycle.activate(guard);
            return;
        }
View Full Code Here

Examples of org.apache.tapestry.callback.ICallback

        Visit visit = (Visit) cycle.getEngine().getVisit();

        if (visit != null && visit.isUserLoggedIn())
            return;

        ICallback callback = new PageCallback(getPage().getPageName());
        Login loginPage = (Login) cycle.getPage("Login");
        loginPage.setCallback(callback);
        cycle.activate(loginPage);
    }
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.