org.nakedobjects.viewer.classic.view
Class FieldValue

java.lang.Object
  extended byorg.nakedobjects.viewer.classic.view.FieldValue
All Implemented Interfaces:
PrimitiveValue

public class FieldValue
extends java.lang.Object
implements PrimitiveValue


Constructor Summary
FieldValue(NakedObject formObject, Value field)
           
 
Method Summary
 boolean canEdit()
          A value field is editable if value is a variable (rather than being derived), the value object's about deems it so, and the parent is editable.
 Value getAttribute()
           
 NakedValue getNakedDatum()
           
 NakedObject getParentObject()
           
 java.lang.String getText()
           
 boolean isValid()
           
 void setAs(java.lang.String text)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldValue

public FieldValue(NakedObject formObject,
                  Value field)
Method Detail

canEdit

public boolean canEdit()
A value field is editable if value is a variable (rather than being derived), the value object's about deems it so, and the parent is editable.

Specified by:
canEdit in interface PrimitiveValue

getAttribute

public Value getAttribute()
Returns:
org.nakedobjects.object.Attribute

getNakedDatum

public NakedValue getNakedDatum()

getParentObject

public NakedObject getParentObject()
Returns:
org.nakedobjects.object.NakedObject

getText

public java.lang.String getText()
Specified by:
getText in interface PrimitiveValue

isValid

public boolean isValid()

setAs

public void setAs(java.lang.String text)
Specified by:
setAs in interface PrimitiveValue

update

public void update()