Package com.hp.lft.sdk.sap.gui
Interface Calendar
- All Superinterfaces:
Element,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,WaitUntilEnabledProvider
A calendar control in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the static text attached to the calendar.getDate()Returns the date selected in this calendar.Returns the range of dates selected in this calendar.voidSets the date of the calendar.voidsetDateRange(DateRange dateRange) Selects the provided date range in the calendar.voidsetDateRange(Date firstDate, Date lastDate) Selects a date range in the calendar.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getAttachedText
Returns the static text attached to the calendar.- Returns:
- the static text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getDateRange
Returns the range of dates selected in this calendar. If a single date is selected, both DateRange.StartDate and DateRange.EndDate are the selected date.- Returns:
- the selected range of dates.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getDate
Returns the date selected in this calendar. If a date range is selected, the Date property is the start date of the range.- Returns:
- the date.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
setDate
Sets the date of the calendar.- Parameters:
date- the date to set.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setDateRange
Selects a date range in the calendar. The actual date range can be one full week or one full month.- Parameters:
firstDate- the start date.lastDate- the end date.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setDateRange
Selects the provided date range in the calendar. The actual date range can be one full week or one full month.- Parameters:
dateRange- the date range.- Throws:
GeneralLeanFtException- if error occurs during execution
-