Interface HasThemeFilter<C extends Component & HasTheme,SELF extends Locator<C,SELF>>

Type Parameters:
C - the component type, bound to HasTheme
SELF - the concrete locator subtype, used for fluent chaining
All Known Implementing Classes:
BigDecimalFieldLocator, ButtonLocator, ChartLocator, CheckboxGroupLocator, CheckboxLocator, ComboBoxLocator, DatePickerLocator, DateTimePickerLocator, DetailsLocator, DialogLocator, EmailFieldLocator, GridLocator, IntegerFieldLocator, MenuBarLocator, MessageInputLocator, MultiSelectComboBoxLocator, NotificationLocator, NumberFieldLocator, PasswordFieldLocator, PopoverLocator, RadioButtonGroupLocator, SelectLocator, SideNavLocator, TabSheetLocator, TabsLocator, TextAreaLocator, TextFieldLocator, TimePickerLocator, UploadLocator, VirtualListLocator

public interface HasThemeFilter<C extends 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    default SELF
    Requires the matched component to not have the given theme set.
    default SELF
    Requires the matched component to have the given theme set.
  • Method Details

    • withTheme

      default SELF withTheme(String theme)
      Requires the matched component to have the given theme set.
    • withoutTheme

      default SELF withoutTheme(String theme)
      Requires the matched component to not have the given theme set.