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

org.nakedobjects.nos.client.dnd.action.CloseViewOption Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.nos.client.dnd.action;

import org.nakedobjects.nof.core.util.ToString;
import org.nakedobjects.nos.client.dnd.View;
import org.nakedobjects.nos.client.dnd.Workspace;
import org.nakedobjects.nos.client.dnd.drawing.Location;


public class CloseViewOption extends AbstractUserAction {
    public CloseViewOption() {
        super("Close");
    }

    public void execute(final Workspace workspace, final View view, final Location at) {
        view.dispose();
    }

    public String getDescription(final View view) {
        return "Close this " + view.getSpecification().getName();
    }

    public String toString() {
        return new ToString(this).toString();
    }
}
// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy