Share this page

com.hp.lft.sdk.java

# Interface Calendar

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface Calendar
      extends UiObjectBase, TestObject

  A Java calendar.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.util.Date` | `getDate()` Returns the date set in the calendar.
    `CalendarStyle` | `getStyle()` Returns the style of a calendar.
    `java.sql.Time` | `getTime()` Returns the time set in the calendar.
    `java.lang.String` | `getValue()` Returns the value set in the calendar.
    `void` | `setDate(java.util.Date date)` Sets the date in the calendar.
    `void` | `setTime(java.sql.Time time)` Sets the time in the calendar.

    - ### Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase

      `createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isEnabled, isFocused, isVisible, sendKeys, sendKeys`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.DoubleClickable

      `doubleClick, doubleClick, doubleClick`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject

      `getNativeObject`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getDate

          java.util.Date getDate()
                          throws GeneralLeanFtException

      Returns the date set in the calendar.
      Returns:
        the date.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getStyle

                                                      CalendarStyle getStyle()
                          throws GeneralLeanFtException

      Returns the style of a calendar. Possible values: `CalendarStyle`
      Returns:
        the style of a calendar. Possible values: `CalendarStyle`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getValue

          java.lang.String getValue()
                             throws GeneralLeanFtException

      Returns the value set in the calendar.
      Returns:
        the value in string format.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getTime

          java.sql.Time getTime()
                         throws GeneralLeanFtException

      Returns the time set in the calendar.
      Returns:
        the time in the calendar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setDate

          void setDate(java.util.Date date)
                throws GeneralLeanFtException

      Sets the date in the calendar.
      Parameters:
        `date` - the date.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setTime

          void setTime(java.sql.Time time)
                throws GeneralLeanFtException

      Sets the time in the calendar.
      Parameters:
        `time` - the time.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: