Package com.hp.lft.sdk
Interface CalendarBase
public interface CalendarBase
Base interface for Calendar test objects.
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()
Returns the date associated with this calendar.Returns the range of dates selected in this calendar.
Notes:
- Supported only for month calendar controls in multi-selection mode.getTime()
Returns the time associated with this calendar.boolean
Indicates whether a range of dates is currently selected in this calendar.void
Sets the date of this calendar.void
setDateRange
(DateRange dateRange) Sets the specified date range using a DateRange value.void
setDateRange
(Date startDate, Date endDate) Sets the specified date range with separate start and end Date values.void
Sets the time of this calendar.
-
Method Details
-
getDate
Returns the date associated with this calendar.
Note: If a date range is selected, returns the start date of the range.- Returns:
- the date associated with this calendar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setDate
Sets the date of this calendar.- Parameters:
date
- the date to set.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getDateRange
Returns the range of dates selected in this calendar.
Notes:
- Supported only for month calendar controls in multi-selection mode.
- If a single date is selected, both DateRange.getStartDate and DateRange.getEndDate return the selected date.- Returns:
- a range of dates.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setDateRange
Sets the specified date range using a DateRange value. Note: Supported only for month calendar controls in multi-selection mode.- Parameters:
dateRange
- the date range to set.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setDateRange
Sets the specified date range with separate start and end Date values.- Parameters:
startDate
- the start date of the range.endDate
- the end date of the range.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isRangeSelected
Indicates whether a range of dates is currently selected in this calendar.- Returns:
- true, if a range of dates is currently selected in this calendar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getTime
Returns the time associated with this calendar.- Returns:
- the time associated with this calendar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setTime
Sets the time of this calendar.- Parameters:
time
- the time to set.- Throws:
GeneralLeanFtException
- if error occurs during execution
-