Package su.onno.ui

Record Class RefOptionContext

java.lang.Object
java.lang.Record
su.onno.ui.RefOptionContext
Record Components:
targetKind - catalog or document
targetName - registered logical name of the referenced entity
fieldPath - top-level field name or section.field
formValues - current top-level form values, keyed by Java field name
section - current tabular section, or null for a top-level field
rowIndex - current tabular row index, or null
rowValues - current tabular row values, keyed by Java field name
documentId - current document id on edit forms, or null on create

public record RefOptionContext(String targetKind, String targetName, String fieldPath, Map<String,Object> formValues, String section, Integer rowIndex, Map<String,Object> rowValues, UUID documentId) extends Record
Live generated-form context supplied when decorating reference-picker options.
  • Constructor Details

    • RefOptionContext

      public RefOptionContext(String targetKind, String targetName, String fieldPath, Map<String,Object> formValues, String section, Integer rowIndex, Map<String,Object> rowValues, UUID documentId)
      Creates an instance of a RefOptionContext record class.
      Parameters:
      targetKind - the value for the targetKind record component
      targetName - the value for the targetName record component
      fieldPath - the value for the fieldPath record component
      formValues - the value for the formValues record component
      section - the value for the section record component
      rowIndex - the value for the rowIndex record component
      rowValues - the value for the rowValues record component
      documentId - the value for the documentId 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.
    • targetKind

      public String targetKind()
      Returns the value of the targetKind record component.
      Returns:
      the value of the targetKind record component
    • targetName

      public String targetName()
      Returns the value of the targetName record component.
      Returns:
      the value of the targetName record component
    • fieldPath

      public String fieldPath()
      Returns the value of the fieldPath record component.
      Returns:
      the value of the fieldPath record component
    • formValues

      public Map<String,Object> formValues()
      Returns the value of the formValues record component.
      Returns:
      the value of the formValues record component
    • section

      public String section()
      Returns the value of the section record component.
      Returns:
      the value of the section record component
    • rowIndex

      public Integer rowIndex()
      Returns the value of the rowIndex record component.
      Returns:
      the value of the rowIndex record component
    • rowValues

      public Map<String,Object> rowValues()
      Returns the value of the rowValues record component.
      Returns:
      the value of the rowValues record component
    • documentId

      public UUID documentId()
      Returns the value of the documentId record component.
      Returns:
      the value of the documentId record component