Package su.onno.ui
Record Class ResolvedListView.CustomView
java.lang.Object
java.lang.Record
su.onno.ui.ResolvedListView.CustomView
- Enclosing class:
ResolvedListView
public static record ResolvedListView.CustomView(String type, String label, boolean defaultView)
extends Record
A custom list-body renderer (see
ListSpec.custom): the widget-registry type
the client resolves the component from, the toolbar-toggle label (blank = the UI's
list.customView message), and whether the list opens on the custom view. The type is
a registry key, not a column — resolution (and degradation to the default grid when nothing
is registered under it) happens client-side, where the registry lives.-
Constructor Summary
ConstructorsConstructorDescriptionCustomView(String type, String label, boolean defaultView) Creates an instance of aCustomViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedefaultViewrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CustomView
Creates an instance of aCustomViewrecord class.- Parameters:
type- the value for thetyperecord componentlabel- the value for thelabelrecord componentdefaultView- the value for thedefaultViewrecord 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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
defaultView
public boolean defaultView()Returns the value of thedefaultViewrecord component.- Returns:
- the value of the
defaultViewrecord component
-