Examples of ICallback


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);

        getCookieSource().writeCookieValue(COOKIE_NAME, email, COOKIE_MAX_AGE);

        cycle.forgetPage(getPageName());
    }
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 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

        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

        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

    public IPage login()
    {
        if (isLoggedIn())
            return null;

        ICallback callback = new PageCallback(getPage().getPageName());

        Login login = getLogin();

        login.setCallback(callback);
View Full Code Here

Examples of org.python.pydev.utils.ICallback

        Label projectTypeLabel = new Label(projectDetails, SWT.NONE);
        projectTypeLabel.setFont(font);
        projectTypeLabel.setText("Project type");
        //let him choose the type of the project
        details = new PyProjectPythonDetails.ProjectInterpreterAndGrammarConfig(new ICallback() {

            //Whenever the configuration changes there, we must evaluate whether the page is complete
            public Object call(Object args) throws Exception {
                setPageComplete(NewProjectNameAndLocationWizardPage.this.validatePage());
                return null;
View Full Code Here

Examples of org.python.pydev.utils.ICallback

    @Override
    protected void initializeEditor() {
        super.initializeEditor();
        djEditor = new DjEditor();

        this.djEditor.registerPrefChangeListener(new ICallback() {

            public Object call(Object args) throws Exception {
                return getISourceViewer();
            }
        });
View Full Code Here

Examples of org.python.pydev.utils.ICallback

     */
    @Override
    protected void initializeEditor() {
        super.initializeEditor();
        djEditor = new DjEditor();
        this.djEditor.registerPrefChangeListener(new ICallback() {

            public Object call(Object args) throws Exception {
                return getISourceViewer();
            }
        });
View Full Code Here

Examples of org.python.pydev.utils.ICallback

    @Override
    public void setUp() throws Exception {
        super.setUp();
        //we also need to set from where the info on the java env
        JavaVmLocationFinder.callbackJavaExecutable = new ICallback() {
            public Object call(Object args) {
                calledJavaExecutable = true;
                return new File(TestDependent.JAVA_LOCATION);
            }
        };

        //and on the associated jars to the java runtime
        JavaVmLocationFinder.callbackJavaJars = new ICallback() {
            public Object call(Object args) {
                calledJavaJars = true;
                ArrayList<File> jars = new ArrayList<File>();
                jars.add(new File(TestDependent.JAVA_RT_JAR_LOCATION));
                return jars;
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.