|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nakedobjects.object.value.AbstractNakedValue
org.nakedobjects.object.value.Logical
Value object representing a true or false value.
NOTE: this class currently does not support about listeners.
Field Summary | |
static java.lang.String |
FALSE
|
static java.lang.String |
TRUE
|
Constructor Summary | |
Logical()
Creates a Logical value set to false. |
|
Logical(boolean flag)
Creates a Logical value set to the specified value. |
Method Summary | |
boolean |
booleanValue()
|
void |
clear()
Clears the value so that it is empty, i.e. |
void |
copyObject(Naked object)
Copies the content of the specified object into this object. |
java.lang.String |
getObjectHelpText()
Returns a textual desctiption of the object - its contents and possible uses. |
boolean |
isEmpty()
Returns true if the object contains no data, eg when new |
boolean |
isSameAs(Naked object)
Compares the flags if specified object is a Logical object else returns false. |
boolean |
isSet()
Returns true is this object is representing a true state. |
void |
parse(java.lang.String text)
Takes a user entry string which is parsed to set up the object. |
void |
reset()
Resets the objects state to false. |
void |
restoreString(java.lang.String data)
Takes a storage string and uses it reinstate this value object to its previous state/ |
java.lang.String |
saveString()
Returns a basic string representation of this value for storage purposes. |
void |
set()
Sets the objects state to true. |
void |
setValue(boolean set)
|
void |
setValue(Logical value)
|
Title |
title()
Returns a Title object describing the object. |
Methods inherited from class org.nakedobjects.object.value.AbstractNakedValue |
about, addNakedValueListener, checkCanOperate, contextualTitle, deepCopy, dumpObject, fireValueChanged, fireValueChanged, getClassName, getFullClassName, getLogger, isNull, isValid, nakedValueListeners, removeNakedValueListener, setAbout, setNull, setValidity, summary, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String TRUE
public static final java.lang.String FALSE
Constructor Detail |
public Logical()
public Logical(boolean flag)
Method Detail |
public boolean booleanValue()
public void clear()
NakedValue
isEmpty
returns true
.
public void copyObject(Naked object)
Naked
public java.lang.String getObjectHelpText()
Naked
getObjectHelpText
in interface Naked
getObjectHelpText
in class AbstractNakedValue
public boolean isEmpty()
Naked
public boolean isSameAs(Naked object)
Logical
object else returns false.
object
- the object to compare
Naked.isSameAs(Naked)
public boolean isSet()
public void parse(java.lang.String text) throws ValueParseException
NakedValue
ValueParseException
NakedValue.restoreString(String)
public void reset()
public void set()
public void setValue(boolean set)
public void setValue(Logical value)
public Title title()
Naked
public void restoreString(java.lang.String data)
NakedValue
data
- NakedValue.parse(String)
public java.lang.String saveString()
NakedValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |