|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.objects.DcValue
public class DcValue
The value class represents a field value. It knows when it has been changed.
Constructor Summary | |
---|---|
DcValue()
|
Method Summary | |
---|---|
void |
clear()
Clears the value and sets it to null. |
protected void |
finalize()
|
java.lang.String |
getDisplayString(DcField field)
|
java.lang.Object |
getValue()
|
java.lang.String |
getValueAsString()
Creates a string representation. |
boolean |
isChanged()
Indicates if the value has been changed. |
void |
setChanged(boolean b)
Marks the value as changed. |
void |
setValue(java.lang.Object o,
DcField field)
Sets the new value for this object. |
void |
setValueLowLevel(java.lang.Object newValue,
DcField field)
Bypasses all checks and sets the value directly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DcValue()
Method Detail |
---|
public boolean isChanged()
public void setChanged(boolean b)
b
- public void setValueLowLevel(java.lang.Object newValue, DcField field)
newValue
- The new value to be used.field
- The field for which the value is set.public void setValue(java.lang.Object o, DcField field)
o
- The new value.field
- The field for which the value is set.public void clear()
nochecks
- Just do it, do not check whether we are dealing with an edited itempublic java.lang.Object getValue()
public java.lang.String getValueAsString()
public java.lang.String getDisplayString(DcField field)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |