Class Calendar

  • All Implemented Interfaces:
    org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

    public abstract class Calendar
    extends AbstractInputComponent
    Component wrapper for the PrimeFaces p:calendar.
    • Constructor Detail

      • Calendar

        public Calendar()
    • Method Detail

      • isDateSelectAjaxified

        public boolean isDateSelectAjaxified()
        Is this component AJAX enabled with "dateSelect"?
        Returns:
        true if AJAX enabled false if not
      • isViewChangeAjaxified

        public boolean isViewChangeAjaxified()
        Is this component AJAX enabled with "viewChange"?
        Returns:
        true if AJAX enabled false if not
      • isCloseAjaxified

        public boolean isCloseAjaxified()
        Is this component AJAX enabled with "close"?
        Returns:
        true if AJAX enabled false if not
      • getValueAsLocalDate

        public LocalDate getValueAsLocalDate()
      • setValue

        public void setValue​(LocalDate localDate)
      • setValue

        public void setValue​(long millis)
      • setDate

        public void setDate​(LocalDateTime dateTime)
        Widget API call to set date to this LocalDateTime.
        Parameters:
        dateTime - the LocalDateTime to set to
      • setDate

        public void setDate​(long epoch)
        Widget API call to set date to this epoch in millis.
        Parameters:
        epoch - epoch in milliseconds
      • getWidgetDate

        public String getWidgetDate()
        Gets the JS date value from the widget.
        Returns:
        the JS date value or null
      • millisAsFormattedDate

        public String millisAsFormattedDate​(long millis)
      • getTimezoneOffset

        public long getTimezoneOffset()