|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.data.DateRange
public class DateRange
A class specifying a range of dates. Values are start and end. If either value is omitted, the range is assumed to be open-ended in that direction - so if the start date is omitted, the range will include any date earlier than the value specified in end date.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
DateRange()
|
|
| Method Summary | |
|---|---|
Date |
getEndDate()
Returns the end date or null if open ended. |
JavaScriptObject |
getJsObj()
|
RelativeDate |
getRelativeEndDate()
Returns the relative end date of the range, or null if not specified. |
RelativeDate |
getRelativeStartDate()
Returns the relative start date of the range, or null if not specified. |
Date |
getStartDate()
Returns the start date or null if open ended. |
void |
setEndDate(Date endDate)
Set the end date of the range. |
void |
setRelativeEndDate(RelativeDate relativeEndDate)
Set the relative end date of the range. |
void |
setRelativeStartDate(RelativeDate relativeStartDate)
Set the relative start date of the range. |
void |
setStartDate(Date startDate)
Set the start date of the range. |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateRange()
| Method Detail |
|---|
public Date getStartDate()
relativeStartDate,
the date is converted to an absolute value and returned.
public void setStartDate(Date startDate)
startDate - the start datepublic Date getEndDate()
relativeEndDate,
the date is converted to an absolute value and returned.
public void setEndDate(Date endDate)
endDate - the end datepublic RelativeDate getRelativeStartDate()
public void setRelativeStartDate(RelativeDate relativeStartDate)
relativeStartDate - the relative start datepublic RelativeDate getRelativeEndDate()
public void setRelativeEndDate(RelativeDate relativeEndDate)
relativeEndDate - the relative end datepublic JavaScriptObject getJsObj()
getJsObj in class JsObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||