org.nakedobjects.plugins.dnd.viewer.content
Class ImmediateObjectOption

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.action.AbstractUserAction
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectOption
          extended by org.nakedobjects.plugins.dnd.viewer.content.ImmediateObjectOption
All Implemented Interfaces:
UserAction

public class ImmediateObjectOption
extends AbstractObjectOption

Options for an underlying object determined dynamically by looking for methods starting with action, veto and option for specifying the action, vetoing the option and giving the option an name respectively.


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectOption
action, target
 
Fields inherited from interface org.nakedobjects.plugins.dnd.UserAction
DEBUG, EXPLORATION, USER
 
Method Summary
protected  Consent checkValid()
           
static ImmediateObjectOption createOption(NakedObjectAction action, NakedObject object)
           
static ImmediateObjectOption createServiceOption(NakedObjectAction action, NakedObject object)
           
 void execute(Workspace workspace, View view, Location at)
          Invoke this action.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectOption
disabled, getHelp, getType, toString
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.action.AbstractUserAction
getDescription, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createOption

public static ImmediateObjectOption createOption(NakedObjectAction action,
                                                 NakedObject object)

createServiceOption

public static ImmediateObjectOption createServiceOption(NakedObjectAction action,
                                                        NakedObject object)

checkValid

protected Consent checkValid()
Overrides:
checkValid in class AbstractObjectOption

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 AbstractUserAction


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.