|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps.bean
Class FormDate

java.lang.Objectcom.RuntimeCollective.webapps.bean.FormDate
- public class FormDate
- extends java.lang.Object
A time stamp with bean style accessors which is the counterpart of ideas.tag.DateInputTag.
- Version:
- $Id: FormDate.java,v 1.6 2003/09/30 15:13:09 joe Exp $
| Field Summary | |
private java.util.Date |
date
|
private boolean |
dateIsDirty
|
private java.lang.String |
day
|
private java.lang.String |
hour
|
private java.lang.String |
minute
|
private java.lang.String |
month
|
private java.lang.String |
year
|
| Constructor Summary | |
FormDate()
Default constructor sets the date to today and the time to 00:00. |
|
FormDate(java.util.Date date)
Constructor sets the date from date. |
|
| Method Summary | |
java.util.Date |
getDate()
get the date. |
java.lang.String |
getDay()
get the day. |
java.lang.String |
getHour()
get the hour. |
java.lang.String |
getMinute()
get the minute. |
java.lang.String |
getMonth()
get the month. |
java.lang.String |
getYear()
get the year. |
boolean |
isValid()
test if this bean represents a valid date. |
private java.lang.String |
nullToStr(java.lang.String str)
|
void |
setDate(java.util.Date date)
set the date. |
void |
setDay(java.lang.String day)
set the day. |
void |
setHour(java.lang.String hour)
set the hour. |
void |
setMinute(java.lang.String minute)
set the minute. |
void |
setMonth(java.lang.String month)
set the month. |
void |
setYear(java.lang.String year)
set the year. |
private java.lang.String |
strToNull(java.lang.String str)
|
private void |
synchroniseDate()
|
private boolean |
validNullValues()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
day
private java.lang.String day
month
private java.lang.String month
year
private java.lang.String year
hour
private java.lang.String hour
minute
private java.lang.String minute
dateIsDirty
private boolean dateIsDirty
date
private java.util.Date date
| Constructor Detail |
FormDate
public FormDate()
- Default constructor sets the date to today and the time to 00:00.
FormDate
public FormDate(java.util.Date date)
- Constructor sets the date from
date. Date may be null, to explicitly represent a null date.
| Method Detail |
getDay
public java.lang.String getDay()
- get the day.
setDay
public void setDay(java.lang.String day)
- set the day.
getMonth
public java.lang.String getMonth()
- get the month.
setMonth
public void setMonth(java.lang.String month)
- set the month.
getYear
public java.lang.String getYear()
- get the year.
setYear
public void setYear(java.lang.String year)
- set the year.
getHour
public java.lang.String getHour()
- get the hour.
setHour
public void setHour(java.lang.String hour)
- set the hour.
getMinute
public java.lang.String getMinute()
- get the minute.
setMinute
public void setMinute(java.lang.String minute)
- set the minute.
getDate
public java.util.Date getDate()
- get the date.
setDate
public void setDate(java.util.Date date)
- set the date.
isValid
public boolean isValid()
- test if this bean represents a valid date.
synchroniseDate
private void synchroniseDate()
nullToStr
private java.lang.String nullToStr(java.lang.String str)
strToNull
private java.lang.String strToNull(java.lang.String str)
validNullValues
private boolean validNullValues()
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.webapps.bean.FormDate