org.nakedobjects.object.control
Class ObjectAbout

java.lang.Object
  extended byorg.nakedobjects.object.control.AbstractAbout
      extended byorg.nakedobjects.object.control.ObjectAbout
All Implemented Interfaces:
About, java.io.Serializable

public class ObjectAbout
extends AbstractAbout

An About for contolling the use of fields within a NakedObject.

See Also:
Serialized Form

Field Summary
static ObjectAbout READ_ONLY
          An About for showing that an attribute is can not be changed.
static ObjectAbout READ_WRITE
          An About for showing that an attribute is can be changed.
 
Constructor Summary
ObjectAbout(java.lang.String attributeName, boolean allow)
          Creates an AttributeController with an alternative name for the field..
 
Method Summary
static ObjectAbout createAbout(boolean readWrite)
          Returns a read/write About (AttributeController.READ_WRITE) if true; read-only (AttributeController.READ_ONLY) if false.
 
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

READ_ONLY

public static final ObjectAbout READ_ONLY
An About for showing that an attribute is can not be changed.


READ_WRITE

public static final ObjectAbout READ_WRITE
An About for showing that an attribute is can be changed.

Constructor Detail

ObjectAbout

public ObjectAbout(java.lang.String attributeName,
                   boolean allow)
Creates an AttributeController with an alternative name for the field..

Method Detail

createAbout

public static ObjectAbout createAbout(boolean readWrite)
Returns a read/write About (AttributeController.READ_WRITE) if true; read-only (AttributeController.READ_ONLY) if false.