org.nakedobjects.object.control
Class ActionAbout

java.lang.Object
  extended byorg.nakedobjects.object.control.AbstractAbout
      extended byorg.nakedobjects.object.control.ActionAbout
All Implemented Interfaces:
About, java.io.Serializable
Direct Known Subclasses:
ActionController

public class ActionAbout
extends AbstractAbout

An About for contolling the action methods within a NakedObject.

See Also:
Serialized Form

Field Summary
static ActionAbout DISABLE
          An About for showing that an action is disabled.
static ActionAbout ENABLE
          An About for showing that an action is enabled.
static ActionAbout UNIMPLEMENTED
          An About for showing that an action is not yet implemented.
 
Method Summary
static ActionAbout disable(boolean disable)
          Returns a disable action About (ActionAbout.DISABLE) if true; veto action (ActionAbout.ENABLE) if false.
static ActionAbout enable(boolean enable)
          Returns an enable action About (ActionAbout.ENABLE) if true; veto action (ActionAbout.DISABLE) if false.
static ActionAbout enable(boolean enable, java.lang.String reason)
           
 
Methods inherited from class org.nakedobjects.object.control.AbstractAbout
canAccess, canUse, getDescription, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIMPLEMENTED

public static final ActionAbout UNIMPLEMENTED
An About for showing that an action is not yet implemented.


DISABLE

public static final ActionAbout DISABLE
An About for showing that an action is disabled.


ENABLE

public static final ActionAbout ENABLE
An About for showing that an action is enabled.

Method Detail

disable

public static ActionAbout disable(boolean disable)
Returns a disable action About (ActionAbout.DISABLE) if true; veto action (ActionAbout.ENABLE) if false.


enable

public static ActionAbout enable(boolean enable)
Returns an enable action About (ActionAbout.ENABLE) if true; veto action (ActionAbout.DISABLE) if false.


enable

public static ActionAbout enable(boolean enable,
                                 java.lang.String reason)