Class DateTimePickerQuery<T extends VaadinElement>

java.lang.Object
org.vaadin.addons.dramafinder.element.query.ElementQuery<T,DateTimePickerQuery<T>>
org.vaadin.addons.dramafinder.element.query.DateTimePickerQuery<T>
Type Parameters:
T - the element type the terminals return
All Implemented Interfaces:
AccessibleNameFilters<DateTimePickerQuery<T>>, LabelFilters<DateTimePickerQuery<T>>, PlaceholderFilters<DateTimePickerQuery<T>>, Refinable<DateTimePickerQuery<T>>

public class DateTimePickerQuery<T extends VaadinElement> extends ElementQuery<T,DateTimePickerQuery<T>> implements LabelFilters<DateTimePickerQuery<T>>, PlaceholderFilters<DateTimePickerQuery<T>>
Query for vaadin-date-time-picker: adds the label filters, and a placeholder filter that reads the date picker's placeholder.
  • Constructor Details

    • DateTimePickerQuery

      public DateTimePickerQuery(Class<T> type, com.microsoft.playwright.Locator candidates)
      Create a query over the given candidates; called by find.
      Parameters:
      type - the element class to wrap each match in
      candidates - the components the filters narrow down
  • Method Details

    • withPlaceholder

      public DateTimePickerQuery<T> withPlaceholder(String placeholder)
      Keep pickers whose date placeholder is exactly placeholder (case-sensitive).

      A date-time picker has no placeholder of its own: Flow's setDatePlaceholder sets it on the vaadin-date-picker the component is made of, which is where this reads it.

      Specified by:
      withPlaceholder in interface PlaceholderFilters<T extends VaadinElement>
      Parameters:
      placeholder - the full date placeholder
      Returns:
      a new, narrowed query