Package com.onec.ui
Record Class ResolvedListView.Column
java.lang.Object
java.lang.Record
com.onec.ui.ResolvedListView.Column
- Enclosing class:
ResolvedListView
public static record ResolvedListView.Column(String label, String columnName, String width, String widget, String format, String hint)
extends Record
A resolved column: the header label, the data column it reads, an optional width hint
(e.g.
"260" px, from .field(...).width(...); blank = size to content), and
the display hints carried over from the attribute — widget (so a list cell can
render an image thumbnail) and format (a date pattern or number spec applied to the
cell value). Both default to blank.-
Constructor Summary
ConstructorsConstructorDescriptionBack-compat: a column with no display widget/format hints.Back-compat: a column with no help hint.Creates an instance of aColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.widget()Returns the value of thewidgetrecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
Column
Back-compat: a column with no display widget/format hints. -
Column
Back-compat: a column with no help hint. -
Column
public Column(String label, String columnName, String width, String widget, String format, String hint) Creates an instance of aColumnrecord class.- Parameters:
label- the value for thelabelrecord componentcolumnName- the value for thecolumnNamerecord componentwidth- the value for thewidthrecord componentwidget- the value for thewidgetrecord componentformat- the value for theformatrecord componenthint- the value for thehintrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
widget
Returns the value of thewidgetrecord component.- Returns:
- the value of the
widgetrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-