|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.calendar.CalendarUnit
public class CalendarUnit
Holder class to present calendar unit information. Represents a unit of date measurement. The types are defined by the provider. The DefaultCalendarProvider uses day, week, month, year.
DefaultCalendarProvider
Field Summary | |
---|---|
protected Date |
endDate
|
protected Date |
startDate
|
protected int |
unitIndex
|
protected String |
units
|
Constructor Summary | |
---|---|
CalendarUnit()
Default constructor |
|
CalendarUnit(Date startDate,
Date endDate,
int unitIndex,
String units)
Constructor to initialize the calendar unit's values. |
Method Summary | |
---|---|
Date |
getEndDate()
Get the end date of this unit. |
Date |
getStartDate()
Get the start date of this unit. |
int |
getUnitIndex()
Get the current day within this unit of measure. |
String |
getUnits()
Get the unit of measure. |
void |
setEndDate(Date endDate)
Set the end date of this unit. |
void |
setStartDate(Date startDate)
Set the start date of this unit. |
void |
setUnitIndex(int unitIndex)
Set the index of the current day within this unit of measure. |
void |
setUnits(String units)
Set the unit of measure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Date startDate
protected Date endDate
protected int unitIndex
protected String units
Constructor Detail |
---|
public CalendarUnit()
public CalendarUnit(Date startDate, Date endDate, int unitIndex, String units)
startDate
- The start date for this unit. May not be null.endDate
- The end date for this unit. May not be null.unitIndex
- The index of a Day within this unit.units
- The type of unit. ( day, week, month, year )Method Detail |
---|
public Date getEndDate()
public void setEndDate(Date endDate)
endDate
- The end date this unit.public Date getStartDate()
public void setStartDate(Date startDate)
startDate
- The start date this unit.public int getUnitIndex()
public void setUnitIndex(int unitIndex)
unitIndex
- An index value that starts at one.public String getUnits()
DefaultCalendarProvider
public void setUnits(String units)
units
- A text value for the calendar unit type.DefaultCalendarProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |