Class Timeline
- java.lang.Object
-
- org.primefaces.selenium.AbstractPrimePageFragment
-
- org.primefaces.selenium.component.base.AbstractComponent
-
- org.primefaces.selenium.component.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 PrimeFacesp:timeline.
-
-
Constructor Summary
Constructors Constructor Description Timeline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNumberOfEvents()Gets number of events (items in the timeline).booleanisRangeChangedAjaxified()Is the timeline using AJAX "rangechanged" event?booleanisSelectAjaxified()Is the timeline using AJAX "select" event?voidmove(double moveFactor)Move the timeline left or right by a factorvoidselect(String cssClass)Selects either an event or any other element in the timeline by its CSS class.voidupdate()Force render the timeline component.voidzoom(double zoomFactor)Zoom the timeline in by the zoom factor.-
Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxified
-
Methods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriver
-
-
-
-
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
-
-