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

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

public abstract class AbstractObjectOption
extends AbstractUserAction


Field Summary
protected  NakedObjectAction action
           
protected  NakedObject target
           
 
Fields inherited from interface org.nakedobjects.plugins.dnd.UserAction
DEBUG, EXPLORATION, USER
 
Constructor Summary
protected AbstractObjectOption(NakedObjectAction action, NakedObject target, java.lang.String name)
           
 
Method Summary
protected  Consent checkValid()
           
 Consent disabled(View view)
          Indicate that this action is disabled
 java.lang.String getHelp(View view)
          Returns the help text for the action.
 NakedObjectActionType getType()
          Returns the type of action: user, exploration, debug, or a set.
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.action.AbstractUserAction
execute, getDescription, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

action

protected final NakedObjectAction action

target

protected final NakedObject target
Constructor Detail

AbstractObjectOption

protected AbstractObjectOption(NakedObjectAction action,
                               NakedObject target,
                               java.lang.String name)
Method Detail

disabled

public Consent disabled(View view)
Description copied from interface: UserAction
Indicate that this action is disabled

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

checkValid

protected Consent checkValid()

getHelp

public java.lang.String getHelp(View view)
Description copied from interface: UserAction
Returns the help text for the action.

Specified by:
getHelp in interface UserAction
Overrides:
getHelp in class AbstractUserAction

getType

public NakedObjectActionType getType()
Description copied from interface: UserAction
Returns the type of action: user, exploration, debug, or a set.

Specified by:
getType in interface UserAction
Overrides:
getType in class AbstractUserAction

toString

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


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