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 Summary
ConstructorsConstructorDescriptionDateTimePickerQuery(Class<T> type, com.microsoft.playwright.Locator candidates) Create a query over the given candidates; called byfind. -
Method Summary
Modifier and TypeMethodDescriptionwithPlaceholder(String placeholder) Keep pickers whose date placeholder is exactlyplaceholder(case-sensitive).Methods inherited from class org.vaadin.addons.dramafinder.element.query.ElementQuery
all, count, exists, first, get, getLocator, refine, single, withAttribute, withAttribute, withClassName, withId, withTestIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vaadin.addons.dramafinder.element.query.AccessibleNameFilters
withAccessibleName, withAccessibleNameContainingMethods inherited from interface org.vaadin.addons.dramafinder.element.query.LabelFilters
withLabel, withLabelContaining
-
Constructor Details
-
DateTimePickerQuery
Create a query over the given candidates; called byfind.- Parameters:
type- the element class to wrap each match incandidates- the components the filters narrow down
-
-
Method Details
-
withPlaceholder
Keep pickers whose date placeholder is exactlyplaceholder(case-sensitive).A date-time picker has no placeholder of its own: Flow's
setDatePlaceholdersets it on thevaadin-date-pickerthe component is made of, which is where this reads it.- Specified by:
withPlaceholderin interfacePlaceholderFilters<T extends VaadinElement>- Parameters:
placeholder- the full date placeholder- Returns:
- a new, narrowed query
-