|
||||||||||
| 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.Magnitude
org.nakedobjects.object.value.Time
Value object representing a time value.
NOTE: this class currently does not support about listeners
| Constructor Summary | |
Time()
|
|
Time(int hour,
int minute)
|
|
Time(Time time)
|
|
| Method Summary | |
void |
add(int hours,
int minutes)
Add the specified hours and minutes to this time value. |
java.util.Calendar |
calendarValue()
|
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.util.Date |
dateValue()
|
java.util.Date |
getDate()
Deprecated. replaced by dateValue |
boolean |
isEmpty()
Return true if the date is blank |
boolean |
isEqualTo(Magnitude time)
returns true if the time of this object has the same value as the specified time |
boolean |
isLessThan(Magnitude time)
returns true if the time of this object is earlier than the specified time |
long |
longValue()
The number of seconds since midnight. |
void |
parse(java.lang.String text)
Takes a user entry string which is parsed to set up the object. |
void |
readExternal(java.io.ObjectInput in)
|
void |
reset()
Reset this time so it contains the current time. |
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 |
setValue(java.util.Date date)
|
void |
setValue(int hour,
int minute)
|
void |
setValue(Time time)
|
Title |
title()
Returns a Title object describing the object. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.nakedobjects.object.value.Magnitude |
isBetween, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isSameAs, max, min |
| Methods inherited from class org.nakedobjects.object.value.AbstractNakedValue |
about, addNakedValueListener, checkCanOperate, contextualTitle, deepCopy, dumpObject, fireValueChanged, fireValueChanged, getClassName, getFullClassName, getLogger, getObjectHelpText, 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 |
| Constructor Detail |
public Time()
public Time(int hour,
int minute)
public Time(Time time)
| Method Detail |
public void add(int hours,
int minutes)
public void clear()
NakedValueisEmpty returns true.
clear in interface NakedValuepublic void copyObject(Naked object)
Naked
copyObject in interface Nakedpublic java.util.Date dateValue()
public java.util.Date getDate()
dateValue()public boolean isEmpty()
isEmpty in interface Nakedpublic boolean isEqualTo(Magnitude time)
isEqualTo in class Magnitudepublic boolean isLessThan(Magnitude time)
isLessThan in class Magnitudepublic long longValue()
public void parse(java.lang.String text)
throws ValueParseException
NakedValue
parse in interface NakedValueValueParseExceptionNakedValue.restoreString(String)
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic void reset()
reset in interface NakedValueNakedValue.reset()
public void setValue(int hour,
int minute)
public void setValue(Time time)
public void setValue(java.util.Date date)
public Title title()
Naked
title in interface Nakedpublic java.util.Calendar calendarValue()
public void restoreString(java.lang.String data)
NakedValue
restoreString in interface NakedValuedata - NakedValue.parse(String)public java.lang.String saveString()
NakedValue
saveString in interface NakedValue
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||