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 Details

    • Column

      public Column(String label, String columnName, String width)
      Back-compat: a column with no display widget/format hints.
    • Column

      public Column(String label, String columnName, String width, String widget, String format)
      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 a Column record class.
      Parameters:
      label - the value for the label record component
      columnName - the value for the columnName record component
      width - the value for the width record component
      widget - the value for the widget record component
      format - the value for the format record component
      hint - the value for the hint record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • columnName

      public String columnName()
      Returns the value of the columnName record component.
      Returns:
      the value of the columnName record component
    • width

      public String width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • widget

      public String widget()
      Returns the value of the widget record component.
      Returns:
      the value of the widget record component
    • format

      public String format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • hint

      public String hint()
      Returns the value of the hint record component.
      Returns:
      the value of the hint record component