Package su.onno.ui
Record Class ResolvedListView
java.lang.Object
java.lang.Record
su.onno.ui.ResolvedListView
public record ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending, List<ResolvedListView.Filter> filters, ResolvedListView.MapView mapView, int pageSize, ResolvedListView.Grouping grouping, ResolvedListView.CustomView customView)
extends Record
Renderer-agnostic resolved list surface: a title and ordered columns. Produced
by
UiViewResolver (merging an EntityView over the auto-generated
defaults) and consumed by the DivKit emitter — or any other renderer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne per-group subtotal: the numericcolumnNameto aggregate, thefn(sum/avg/min/max), its headerlabel, and the displayformatcarried from the column (so a money subtotal renders as money).static final recordcellMenu: a row-action submenu label the cell opens directly on right-click (ListSpec.cellMenu); blank = the cell has no menu of its own.static final recordA custom list-body renderer (seeListSpec.custom): the widget-registrytypethe client resolves the component from, the toolbar-togglelabel(blank = the UI'slist.customViewmessage), and whether the list opens on the custom view.static final recordA resolved list filter: a stablekey(the field name, the client's state key), thelabel, the datacolumnNamethe query filters on (resolved + validated against the entity's columns), the controltype("options","multiOptions","contains","startsWith"or"dateRange") and, for the (multi-)options controls, itsoptions(each a value→label pair).static final recordOne groupable column: the datacolumnNametheGROUP BYruns on, its pickerlabel, and whether it is a date/time column (date) — a date column offers a day/month/year granularity and buckets rows by period instead of exact value.static final recordThe list's grouping capability: the columns a user may group by (the "Group by ▾" picker), the per-group subtotals to show, and thedefaultColumnthe list opens grouped by (blank = opens flat).static final recordA resolved map view: the datacolumnNames the geometry reads — a marker point from alatField/lngFieldpair and/or ageoJsonField(GeoJSON points/paths/areas) — an optionallabelFieldfor the popup, and whether the list opens on the map.static final recordOne choice of a (multi-)options filter: thevaluethe query matches against the column, and thelabelthe control renders. -
Constructor Summary
ConstructorsConstructorDescriptionResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending, List<ResolvedListView.Filter> filters, ResolvedListView.MapView mapView, int pageSize, ResolvedListView.Grouping grouping, ResolvedListView.CustomView customView) Creates an instance of aResolvedListViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.Returns the value of thecustomViewrecord component.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.grouping()Returns the value of thegroupingrecord component.final inthashCode()Returns a hash code value for this object.mapView()Returns the value of themapViewrecord component.intpageSize()Returns the value of thepageSizerecord component.booleanReturns the value of thesearchablerecord component.Returns the value of thesortColumnrecord component.booleanReturns the value of thesortDescendingrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedListView
public ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending, List<ResolvedListView.Filter> filters, ResolvedListView.MapView mapView, int pageSize, ResolvedListView.Grouping grouping, ResolvedListView.CustomView customView) Creates an instance of aResolvedListViewrecord class.- Parameters:
title- the value for thetitlerecord componentcolumns- the value for thecolumnsrecord componentsearchable- the value for thesearchablerecord componentsortColumn- the value for thesortColumnrecord componentsortDescending- the value for thesortDescendingrecord componentfilters- the value for thefiltersrecord componentmapView- the value for themapViewrecord componentpageSize- the value for thepageSizerecord componentgrouping- the value for thegroupingrecord componentcustomView- the value for thecustomViewrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
searchable
public boolean searchable()Returns the value of thesearchablerecord component.- Returns:
- the value of the
searchablerecord component
-
sortColumn
Returns the value of thesortColumnrecord component.- Returns:
- the value of the
sortColumnrecord component
-
sortDescending
public boolean sortDescending()Returns the value of thesortDescendingrecord component.- Returns:
- the value of the
sortDescendingrecord component
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-
mapView
Returns the value of themapViewrecord component.- Returns:
- the value of the
mapViewrecord component
-
pageSize
public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
grouping
Returns the value of thegroupingrecord component.- Returns:
- the value of the
groupingrecord component
-
customView
Returns the value of thecustomViewrecord component.- Returns:
- the value of the
customViewrecord component
-