Package com.vaadin.browserless.locator
Interface HasThemeFilter<C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasTheme,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasThemeSELF- the concrete locator subtype, used for fluent chaining
- All Known Implementing Classes:
AvatarGroupLocator,BigDecimalFieldLocator,BreadcrumbsLocator,ButtonLocator,CardLocator,ChartLocator,CheckboxGroupLocator,CheckboxLocator,ComboBoxLocator,DashboardLocator,DatePickerLocator,DateTimePickerLocator,DecimalRangeSliderLocator,DecimalSliderLocator,DetailsLocator,DialogLocator,EmailFieldLocator,GridLocator,GridProLocator,IntegerFieldLocator,IntegerRangeSliderLocator,IntegerSliderLocator,MenuBarLocator,MessageInputLocator,MessageListLocator,MultiSelectComboBoxLocator,NotificationLocator,NumberFieldLocator,PasswordFieldLocator,PopoverLocator,RadioButtonGroupLocator,SelectLocator,SideNavLocator,SplitLayoutLocator,SwitchLocator,TabSheetLocator,TabsLocator,TextAreaLocator,TextFieldLocator,TimePickerLocator,TreeGridLocator,UploadButtonLocator,UploadFileListLocator,UploadLocator,VirtualListLocator
public interface HasThemeFilter<C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasTheme,SELF extends Locator<C,SELF>>
Mixin for
Locators whose target component implements
HasTheme. Exposes theme-based filter methods that would be
meaningless on components without theme support, turning an inapplicable call
into a compile error rather than a silent no-op.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault SELFwithoutTheme(com.vaadin.flow.component.shared.ThemeVariant variant) Requires the matched component to not have the given theme variant set.default SELFwithoutTheme(String theme) Deprecated.default SELFwithTheme(com.vaadin.flow.component.shared.ThemeVariant variant) Requires the matched component to have the given theme variant set.default SELFDeprecated.usewithTheme(ThemeVariant)with the component's typed variant enum where possible.
-
Method Details
-
withTheme
Deprecated.usewithTheme(ThemeVariant)with the component's typed variant enum where possible. This raw-string overload remains for themes not surfaced through aThemeVariantenum.Requires the matched component to have the given theme set.- Parameters:
theme- the theme name- Returns:
- this locator, for chaining
-
withoutTheme
Deprecated.usewithoutTheme(ThemeVariant)with the component's typed variant enum where possible.Requires the matched component to not have the given theme set.- Parameters:
theme- the theme name- Returns:
- this locator, for chaining
withoutTheme(ThemeVariant)with the component's typed variant enum where possible.