Class RatingIndicatorDescription.Init<T extends RatingIndicatorDescription.Init<T>>

Direct Known Subclasses:
RatingIndicatorDescription.Builder
Enclosing class:
RatingIndicatorDescription

protected abstract static class RatingIndicatorDescription.Init<T extends RatingIndicatorDescription.Init<T>> extends WebElementDescription.Init<T>
Helper class for RatingIndicatorDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

      Description copied from class: DescriptionBase.Init
      Returns the built description instance (builder pattern).
      Overrides:
      build in class WebElementDescription.Init<T extends RatingIndicatorDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • enabled

      public T enabled(Boolean enabled)
      Initializes whether the rating indicator is enabled.
      Parameters:
      enabled - true if the rating indicator is enabled.
      Returns:
      The description instance with the update state (builder pattern).
    • rating

      public T rating(Double rating)
      Initializes the rating level to which the object is currently set.
      Parameters:
      rating - the rating level to set.
      Returns:
      The description instance with the update state (builder pattern).
    • maxRating

      public T maxRating(Integer max)
      Initializes the highest rating level that can be set.
      Parameters:
      max - the highest rating level.
      Returns:
      the description instance with the update state (builder pattern).
    • orientation

      public T orientation(Orientation orientation)
      Initializes the orientation of the rating indicator items
      Parameters:
      orientation - the display mode of the rating indicator items. Possible values: Orientation
      Returns:
      the description instance with the update state (builder pattern).