Package com.onec.ui
Record Class ResolvedListView
java.lang.Object
java.lang.Record
com.onec.ui.ResolvedListView
public record ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending, List<ResolvedListView.Filter> filters)
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 recordA resolved column: the header label, the data column it reads, an optional width hint (e.g.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. -
Constructor Summary
ConstructorsConstructorDescriptionResolvedListView(String title, List<ResolvedListView.Column> columns) Back-compat: a non-searchable, default-sorted view.ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending) Back-compat: a view with no declarative filters.ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending, List<ResolvedListView.Filter> filters) Creates an instance of aResolvedListViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.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) 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 component
-
ResolvedListView
Back-compat: a non-searchable, default-sorted view. -
ResolvedListView
public ResolvedListView(String title, List<ResolvedListView.Column> columns, boolean searchable, String sortColumn, boolean sortDescending) Back-compat: a view with no declarative filters.
-
-
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
-