Package com.vaadin.browserless.internal
Class SearchSpec
-
- All Implemented Interfaces:
public final class SearchSpec<T extends Component>A criterion for matching components. The component must match all of non-null fields.
You can add more properties, simply by creating a write-only property which will register a new predicate on write. See Adding support for custom search criteria for more details.
-
-
Field Summary
Fields Modifier and Type Field Description private final Class<T>clazzprivate Stringidprivate StringtestIdprivate Stringcaptionprivate Stringplaceholderprivate Stringtextprivate IntRangecountprivate Objectvalueprivate Stringclassesprivate StringwithoutClassesprivate List<Predicate<T>>predicatesprivate Stringthemesprivate StringwithoutThemes
-
Method Summary
-
-
Method Detail
-
getCaption
final String getCaption()
-
setCaption
final Unit setCaption(String value)
-
getPlaceholder
final String getPlaceholder()
-
setPlaceholder
final Unit setPlaceholder(String value)
-
getClasses
final String getClasses()
-
setClasses
final Unit setClasses(String value)
-
getWithoutClasses
final String getWithoutClasses()
-
setWithoutClasses
final Unit setWithoutClasses(String value)
-
getPredicates
final List<Predicate<T>> getPredicates()
-
setPredicates
final Unit setPredicates(List<Predicate<T>> value)
-
getWithoutThemes
final String getWithoutThemes()
-
setWithoutThemes
final Unit setWithoutThemes(String value)
-
captionContains
final Unit captionContains(String substring)
Makes sure that the component's Component.caption contains given substring.
-
toPredicate
final Function1<Component, Boolean> toPredicate()
Returns a predicate which matches components based on this spec. All rules are matched except the count rule. The rules are matched against given component only (not against its children).
-
-
-
-