public class DateRangeModel extends Object
| Constructor and Description |
|---|
DateRangeModel()
Create a new DateRangeModel
|
| Modifier and Type | Method and Description |
|---|---|
void |
endNow()
Set the end date to now
|
com.addc.commons.date.DateRange |
getDateRange()
Get the date range to filter on or null if either date is not set
|
String |
getEndDate()
Get the endDate
|
String |
getEndTime()
Get the endTime
|
String |
getStartDate()
Get the startDate
|
String |
getStartTime()
Get the startTime
|
void |
lastDay()
Set the start date to 24 hours ago and end now
|
void |
lastWeek()
Set the start date to one week ago and end now
|
void |
setEndDate(String endDate)
Set the endDate
|
void |
setEndTime(String endTime)
Set the endTime
|
void |
setStartDate(String startDate)
Set the startDate
|
void |
setStartTime(String startTime)
Set the startTime
|
public String getStartDate()
public void setStartDate(String startDate)
startDate - the startDate to setpublic String getStartTime()
public void setStartTime(String startTime)
startTime - the startTime to setpublic String getEndDate()
public void setEndDate(String endDate)
endDate - the endDate to setpublic String getEndTime()
public void setEndTime(String endTime)
endTime - the endTime to setpublic com.addc.commons.date.DateRange getDateRange()
public void lastDay()
public void lastWeek()
public void endNow()
Copyright © 2019 ADDC Infotech GmbH. All rights reserved.