All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.plugins.htmlviewer.request.ChangeContext Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.plugins.htmlviewer.request;

import org.nakedobjects.plugins.htmlviewer.component.Page;
import org.nakedobjects.plugins.htmlviewer.request.Request;
import org.nakedobjects.plugins.htmlviewer.request.Task;



public class ChangeContext implements Action {

    public void execute(final Request request, final Context context, final Page page) {
        final int id = Integer.valueOf(request.getObjectId()).intValue();
        request.forward(context.changeContext(id));
    }

    public String name() {
        return "context";
    }

}

// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy