Class Timeline

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

    public abstract class Timeline
    extends AbstractComponent
    Component wrapper for the PrimeFaces p:timeline.
    • Constructor Detail

      • Timeline

        public Timeline()
    • Method Detail

      • select

        public void select​(String cssClass)
        Selects either an event or any other element in the timeline by its CSS class.
        Parameters:
        cssClass - the CSS class to select
      • isRangeChangedAjaxified

        public boolean isRangeChangedAjaxified()
        Is the timeline using AJAX "rangechanged" event?
        Returns:
        true if using AJAX for rangechanged
      • isSelectAjaxified

        public boolean isSelectAjaxified()
        Is the timeline using AJAX "select" event?
        Returns:
        true if using AJAX for select
      • update

        public void update()
        Force render the timeline component.
      • getNumberOfEvents

        public long getNumberOfEvents()
        Gets number of events (items in the timeline).
        Returns:
        The number of event in the timeline.
      • zoom

        public void zoom​(double zoomFactor)
        Zoom the timeline in by the zoom factor.
        Parameters:
        zoomFactor - a number between 0 and 1
      • move

        public void move​(double moveFactor)
        Move the timeline left or right by a factor
        Parameters:
        moveFactor - a number between 0 and 1