com.hp.lft.sdk

Interface CalendarBase

  • All Known Subinterfaces:
    Calendar, Calendar


    public interface CalendarBase
    Base interface for Calendar test objects.
    • Method Summary

      Modifier and TypeMethod and Description
      java.util.DategetDate()
      Returns the date associated with this calendar.
      DateRangegetDateRange()
      Returns the range of dates selected in this calendar.
      Notes:
      - Supported only for month calendar controls in multi-selection mode.
      java.sql.TimegetTime()
      Returns the time associated with this calendar.
      booleanisRangeSelected()
      Indicates whether a range of dates is currently selected in this calendar.
      voidsetDate(java.util.Date date)
      Sets the date of this calendar.
      voidsetDateRange(java.util.Date startDate, java.util.Date endDate)
      Sets the specified date range with separate start and end Date values.
      voidsetDateRange(DateRange dateRange)
      Sets the specified date range using a DateRange value.
      voidsetTime(java.sql.Time time)
      Sets the time of this calendar.
    • Method Detail

      • getDate

        java.util.Date getDate()
                        throws GeneralLeanFtException
        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 an error occurs during execution.
      • getDateRange

                                                    DateRange getDateRange()
                        throws GeneralLeanFtException
        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 an error occurs during execution.
      • setDateRange

        void setDateRange(DateRange dateRange)
                   throws GeneralLeanFtException
        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 an error occurs during execution.
      • setDateRange

        void setDateRange(java.util.Date startDate,
                          java.util.Date endDate)
                   throws GeneralLeanFtException
        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 an error occurs during execution.
      • isRangeSelected

        boolean isRangeSelected()
                         throws GeneralLeanFtException
        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 an error occurs during execution.
      • getTime

        java.sql.Time getTime()
                       throws GeneralLeanFtException
        Returns the time associated with this calendar.
        Returns:
        the time associated with this calendar.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.