Class CalendarDescription

All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class CalendarDescription extends WebElementDescription
The description of an SAPUI5 Calendar test object.
  • Constructor Details

    • CalendarDescription

      public CalendarDescription()
      Initializes a new instance of the CalendarDescription class.
    • CalendarDescription

      protected CalendarDescription(CalendarDescription.Init<?> init)
      Initializes a new instance of the CalendarDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets whether the calendar is enabled.
      Parameters:
      enabled - true to enable the object.
    • isEnabled

      public Boolean isEnabled()
      Returns whether the calendar is enabled.
      Returns:
      True if enabled.
    • setDate

      public void setDate(Date date)
      Sets the current date on the calendar.
      Parameters:
      date - the current date on the calendar.
    • getDate

      public Date getDate() throws ParseException
      Gets the current date on the calendar.
      Returns:
      the current date on the calendar.
      Throws:
      ParseException - if the parsing process failed.
    • setLocale

      public void setLocale(StringProperty locale)
      Sets the locale of the calendar.
      Parameters:
      locale - a StringProperty(or RegExpProperty) representing the locale on the calendar.
    • setLocale

      public void setLocale(String locale)
      Sets the locale of the calendar.
      Parameters:
      locale - the locale of the calendar.
    • getLocale

      public StringProperty getLocale()
      Returns the locale of the application running the calendar.
      Returns:
      the locale of the application running the calendar.