Package su.onno.ui
Class PageBuilder.ListDefaults
java.lang.Object
su.onno.ui.PageBuilder.ListDefaults
- Enclosing class:
PageBuilder
Preset view for an embedded
PageBuilder.list(Class, Consumer) — initial filter selections, a
base feed constraint, a group-by column and date granularity, and a sort. Every part is
optional; only what's set is applied.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultFilter(String filterKey, String... values) Preselect values in a declared list filter.defaultFirstFilterOption(String filterKey) Preselect the first option of a declared options filter.A base filter constraint on the feed, in thecol op valuegrammar (AND-chained).Open the list grouped by this column (a column the list declares groupable).groupBy(String column, DateGranularity granularity) Open the list grouped by this temporal column using the requested calendar bucket.Sort ascending by this column.Sort by this column, descending whendescendingis true.
-
Constructor Details
-
ListDefaults
public ListDefaults()
-
-
Method Details
-
filter
A base filter constraint on the feed, in thecol op valuegrammar (AND-chained). -
groupBy
Open the list grouped by this column (a column the list declares groupable). -
groupBy
Open the list grouped by this temporal column using the requested calendar bucket. -
defaultFilter
Preselect values in a declared list filter. Unlikefilter(String), this is a removable toolbar selection: the viewer may clear or replace it. -
defaultFirstFilterOption
Preselect the first option of a declared options filter. Useful when the option values are resolved dynamically by the entity view; an empty option list leaves the filter clear. -
sort
Sort ascending by this column. -
sort
Sort by this column, descending whendescendingis true.
-