Class Rating
- java.lang.Object
-
- org.primefaces.selenium.AbstractPrimePageFragment
-
- org.primefaces.selenium.component.base.AbstractComponent
-
- org.primefaces.selenium.component.base.AbstractInputComponent
-
- org.primefaces.selenium.component.Rating
-
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
public abstract class Rating extends AbstractInputComponent
Component wrapper for the PrimeFacesp:rating.
-
-
Constructor Summary
Constructors Constructor Description Rating()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Resets the rating so that no stars are selected using the cancel icon.org.openqa.selenium.WebElementgetCancelIcon()Gets the cancel icon if available.org.openqa.selenium.WebElementgetInput()The input element reference.NumbergetValue()Finds the current rating, i.e.booleanisCancelAjaxified()Is Cancel event AJAX enabled?booleanisDisabled()Is this rating disabled?booleanisEnabled()Is this SelectOneMenu enabled?booleanisRatingAjaxified()Is Rating event AJAX enabled?booleanisReadOnly()Is this rating readonly?voidreset()Resets the rating so that no stars are selected.voidsetValue(Number value)Sets the rating to the given value.-
Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabel, getAssignedLabelText, isOnchangeAjaxified, pasteFromClipboard, selectAllText
-
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
-
getInput
public org.openqa.selenium.WebElement getInput()
Description copied from class:AbstractInputComponentThe input element reference.- Overrides:
getInputin classAbstractInputComponent- Returns:
- the
WebElementrepresenting the input.
-
isCancelAjaxified
public boolean isCancelAjaxified()
Is Cancel event AJAX enabled?- Returns:
- true if AJAX enabled false if not
-
isRatingAjaxified
public boolean isRatingAjaxified()
Is Rating event AJAX enabled?- Returns:
- true if AJAX enabled false if not
-
getCancelIcon
public org.openqa.selenium.WebElement getCancelIcon()
Gets the cancel icon if available.- Returns:
- the cancel icon
-
cancel
public void cancel()
Resets the rating so that no stars are selected using the cancel icon.
-
getValue
public Number getValue()
Finds the current rating, i.e. the number of stars selected.- Returns:
- The current rating value.
-
setValue
public void setValue(Number value)
Sets the rating to the given value.- Parameters:
value- New rating value to set (number of starts selected).
-
reset
public void reset()
Resets the rating so that no stars are selected.
-
isDisabled
public boolean isDisabled()
Is this rating disabled?- Returns:
- true if disabled
-
isReadOnly
public boolean isReadOnly()
Is this rating readonly?- Returns:
- true if readonly
-
isEnabled
public boolean isEnabled()
Description copied from class:AbstractInputComponentIs this SelectOneMenu enabled?- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement- Overrides:
isEnabledin classAbstractInputComponent- Returns:
- true if enabled, false if not
-
-