org.nakedobjects.viewer.lightweight.options
Class CloseViewOption

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

public class CloseViewOption
extends MenuOption


Constructor Summary
CloseViewOption()
           
 
Method Summary
 Permission disabled(Workspace frame, View component, Location location)
          Indicate that this action is disabled
 void execute(Workspace workspace, View view, Location at)
          Invoke this action.
 java.lang.String toString()
           
 
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

CloseViewOption

public CloseViewOption()
Method Detail

disabled

public Permission disabled(Workspace frame,
                           View component,
                           Location location)
Description copied from interface: UserAction
Indicate that this action is disabled

Specified by:
disabled in interface UserAction
Overrides:
disabled in class MenuOption

execute

public void execute(Workspace workspace,
                    View view,
                    Location at)
Description copied from interface: UserAction
Invoke this action.

Specified by:
execute in interface UserAction
Specified by:
execute in class MenuOption

toString

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