Interface Calendar

All Superinterfaces:
Element, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, WaitUntilEnabledProvider

public interface Calendar extends Element, WaitUntilEnabledProvider
A calendar control in a SAP GUI for Windows application.
  • Method Details

    • getAttachedText

      String getAttachedText() throws GeneralLeanFtException
      Returns the static text attached to the calendar.
      Returns:
      the static text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getDateRange

      DateRange getDateRange() throws GeneralLeanFtException
      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

      Date getDate() throws GeneralLeanFtException
      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

      void setDate(Date date) throws GeneralLeanFtException
      Sets the date of the calendar.
      Parameters:
      date - the date to set.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setDateRange

      void setDateRange(Date firstDate, Date lastDate) throws GeneralLeanFtException
      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

      void setDateRange(DateRange dateRange) throws GeneralLeanFtException
      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