|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ponec.jworksheet.bo.item.YearMonthDay
public class YearMonthDay
Year, month and day
Field Summary | |
---|---|
static java.text.SimpleDateFormat |
exportDateFormat
|
static int |
TYPE_DAY
|
static int |
TYPE_MONTH
|
static int |
TYPE_YEAR
|
Constructor Summary | |
---|---|
|
YearMonthDay()
Creates a new TODAY instance of Time |
|
YearMonthDay(java.util.Date date)
Creates a new instance of Time |
protected |
YearMonthDay(int yearMonthDay)
Creates a new instance of Time |
|
YearMonthDay(java.lang.String yearMonthDay)
Creates a new instance of Time |
Method Summary | |
---|---|
void |
addDay(int day)
|
java.lang.Object |
clone(int depth,
java.lang.Object context)
|
YearMonthDay |
cloneDay()
|
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj)
Equals to another YearMonthDay ? |
int |
get(int itemType)
See constants TYPE* for more information. |
java.util.Calendar |
getCalendar()
|
java.util.Date |
getTime()
Get Time |
void |
setToday()
|
void |
setYearMonthDay(java.util.Calendar calendar)
Set value by Calendar |
void |
setYearMonthDay(java.util.Date date)
Set value by Date |
java.lang.String |
toString()
Sample: 2007-07 or 2006-12 |
java.lang.String |
toString(ApplContext context)
Get Localized String to GUI. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_DAY
public static final int TYPE_MONTH
public static final int TYPE_YEAR
public static final java.text.SimpleDateFormat exportDateFormat
Constructor Detail |
---|
protected YearMonthDay(int yearMonthDay)
yearMonthDay
- 2006-10-21public YearMonthDay(java.lang.String yearMonthDay)
yearMonthDay
- 2006-10-21public YearMonthDay(java.util.Date date)
public YearMonthDay()
Method Detail |
---|
public void setYearMonthDay(java.util.Date date)
public void setYearMonthDay(java.util.Calendar calendar)
public int get(int itemType)
public java.util.Calendar getCalendar()
public java.util.Date getTime()
public void addDay(int day)
public void setToday()
public java.lang.String toString()
toString
in interface ValueTextable
toString
in class java.lang.Object
public java.lang.String toString(ApplContext context)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public YearMonthDay cloneDay()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.Object clone(int depth, java.lang.Object context)
clone
in interface UjoCloneable
|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |