Package com.onec.ui
Class ListSpec.FilterBuilder
java.lang.Object
com.onec.ui.ListSpec.FilterBuilder
- Enclosing class:
ListSpec
Fluent builder for one filter;
options/multiOptions(java.lang.String...)/contains()/
startsWith()/dateRange() pick the control type.-
Method Summary
Modifier and TypeMethodDescriptioncontains()A field-scoped typeahead: a debounced text input matched case-insensitively asfield LIKE %text%.A from/to date-range filter (two date pickers) over the field.Override the control's label (defaults to the field name).multiOptions(String... options) A multi-select filter: pick any number ofoptions, matched asfield IN (…)over the chosen values (an empty selection adds no constraint).A SELECT filter: pick one ofoptions, matched for equality on the field.Likecontains()but anchored at the start: matched asfield LIKE text%.
-
Method Details
-
label
Override the control's label (defaults to the field name). -
options
A SELECT filter: pick one ofoptions, matched for equality on the field. -
multiOptions
A multi-select filter: pick any number ofoptions, matched asfield IN (…)over the chosen values (an empty selection adds no constraint). -
contains
A field-scoped typeahead: a debounced text input matched case-insensitively asfield LIKE %text%. The high-cardinality answer where a SELECT of every value would be unusable (e.g. filter a roster by a ~1.4k-name doctor column). -
startsWith
Likecontains()but anchored at the start: matched asfield LIKE text%. -
dateRange
A from/to date-range filter (two date pickers) over the field.
-