Package su.onno.ui

Record Class ResolvedListView.Column

java.lang.Object
java.lang.Record
su.onno.ui.ResolvedListView.Column
Enclosing class:
ResolvedListView

public static record ResolvedListView.Column(String label, String columnName, String fieldName, String width, String widget, String format, String hint, String cellMenu) extends Record
cellMenu: a row-action submenu label the cell opens directly on right-click (ListSpec.cellMenu); blank = the cell has no menu of its own.
  • Constructor Details

    • Column

      public Column(String label, String columnName, String width, String widget, String format, String hint, String cellMenu)
      Backward-compatible constructor for descriptors created before logical response keys.
    • Column

      public Column(String label, String columnName, String fieldName, String width, String widget, String format, String hint, String cellMenu)
      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
      fieldName - the value for the fieldName 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
      cellMenu - the value for the cellMenu 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
    • fieldName

      public String fieldName()
      Returns the value of the fieldName record component.
      Returns:
      the value of the fieldName 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
    • cellMenu

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