Package com.hp.lft.sdk.wpf
Interface Calendar
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportDragAndDrop,- SupportSendKeys,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- UiObjectBase,- UiObjectBase,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
A calendar or a date picker .NET WPF object.
- 
Method SummaryModifier and TypeMethodDescriptiongetDate()Returns the date associated with this calendar.Returns the date format type.Returns the selected date ranges of this Month Calendar control in multi-selection mode.Returns the help text associated with this object.Returns the text associated with the parent object of this object.voidSets the date of this calendar.voidsetDateRange(DateRange dateRange) Sets the date range of this calendar or the date of this date picker.voidsetDateRange(Date startDate, Date endDate) Sets the date range of this calendar or the date of this date picker.voidsetDateRanges(DateRange... dateRanges) Sets the date ranges of this calendar or the dates of this date picker.voidsetMonth(int month) Sets the month in this calendar.voidsetYear(int year) Sets the year in this calendar.Methods inherited from interface com.hp.lft.sdk.DoubleClickabledoubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeyssendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.UiObjectBasegetHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.wpf.UiObjectBasecanFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenuMethods inherited from interface com.hp.lft.sdk.VisibleProviderisVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisible
- 
Method Details- 
getDateReturns the date associated with this calendar. If a date range is associated, returns the start date.
 Note: If you try to retrieve a date value from a WPF calendar object before performing an operation on it, an exception is returned.
 Therefore, make sure to precede the retrieve value step with a step that performs an operation on the calendar, such as setting the date on the calendar to the current date.- Returns:
- the date
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setDateSets the date of this calendar.- Parameters:
- date- the date of the calendar
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getDateRangesReturns the selected date ranges of this Month Calendar control in multi-selection mode.
 If a single date is selected in the calendar:- DateRanges returns an array with a single element.
- Both DateRange.getStartDate() and DateRange.getEndDate() are equal to the selected date.
 - Returns:
- ranges of dates
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setDateRangeSets the date range of this calendar or the date of this date picker.
 If a single date is selected in the calendar, the getDateRanges method will return a DateRange array with a single element, where both DateRange.getStartDate() and DateRange.getEndDate() of the element are equal to the selected date.- Parameters:
- dateRange- the date range
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setDateRangeSets the date range of this calendar or the date of this date picker.- Parameters:
- startDate- the start of the range
- endDate- the end of the range
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setDateRangesSets the date ranges of this calendar or the dates of this date picker.- Parameters:
- dateRanges- the date ranges to set
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setMonthSets the month in this calendar.- Parameters:
- month- a number from 1 to 12
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setYearSets the year in this calendar.- Parameters:
- year- the year
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getDateFormatTypeReturns the date format type.- Returns:
- the DateFormateType
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getParentTextReturns the text associated with the parent object of this object.- Returns:
- the text
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getHelpTextReturns the help text associated with this object.- Returns:
- the help text
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-