org.nakedobjects.viewer.lightweight.options
Class ReplaceViewOption

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.MenuOption
      extended byorg.nakedobjects.viewer.lightweight.options.AbstractObjectOption
          extended byorg.nakedobjects.viewer.lightweight.options.ReplaceViewOption
All Implemented Interfaces:
UserAction

public class ReplaceViewOption
extends AbstractObjectOption


Constructor Summary
ReplaceViewOption(ObjectView prototype)
           
 
Method Summary
 Permission disabled(Workspace workspace, ObjectView view, Location location)
           
 void execute(Workspace workspace, ObjectView view, Location at)
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.viewer.lightweight.options.AbstractObjectOption
disabled, execute, getDescription
 
Methods inherited from class org.nakedobjects.viewer.lightweight.MenuOption
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplaceViewOption

public ReplaceViewOption(ObjectView prototype)
Method Detail

disabled

public Permission disabled(Workspace workspace,
                           ObjectView view,
                           Location location)
Overrides:
disabled in class AbstractObjectOption

execute

public void execute(Workspace workspace,
                    ObjectView view,
                    Location at)
Specified by:
execute in class AbstractObjectOption

toString

public java.lang.String toString()
Overrides:
toString in class MenuOption