Package su.onno.ui
Record Class RefOptionContext
java.lang.Object
java.lang.Record
su.onno.ui.RefOptionContext
- Record Components:
targetKind-catalogordocumenttargetName- registered logical name of the referenced entityfieldPath- top-level field name orsection.fieldformValues- current top-level form values, keyed by Java field namesection- current tabular section, ornullfor a top-level fieldrowIndex- current tabular row index, ornullrowValues- current tabular row values, keyed by Java field namedocumentId- current document id on edit forms, ornullon 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldPathrecord component.Returns the value of theformValuesrecord component.final inthashCode()Returns a hash code value for this object.rowIndex()Returns the value of therowIndexrecord component.Returns the value of therowValuesrecord component.section()Returns the value of thesectionrecord component.Returns the value of thetargetKindrecord component.Returns the value of thetargetNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRefOptionContextrecord class.- Parameters:
targetKind- the value for thetargetKindrecord componenttargetName- the value for thetargetNamerecord componentfieldPath- the value for thefieldPathrecord componentformValues- the value for theformValuesrecord componentsection- the value for thesectionrecord componentrowIndex- the value for therowIndexrecord componentrowValues- the value for therowValuesrecord componentdocumentId- the value for thedocumentIdrecord 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). -
targetKind
Returns the value of thetargetKindrecord component.- Returns:
- the value of the
targetKindrecord component
-
targetName
Returns the value of thetargetNamerecord component.- Returns:
- the value of the
targetNamerecord component
-
fieldPath
Returns the value of thefieldPathrecord component.- Returns:
- the value of the
fieldPathrecord component
-
formValues
Returns the value of theformValuesrecord component.- Returns:
- the value of the
formValuesrecord component
-
section
Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
rowIndex
Returns the value of therowIndexrecord component.- Returns:
- the value of the
rowIndexrecord component
-
rowValues
Returns the value of therowValuesrecord component.- Returns:
- the value of the
rowValuesrecord component
-
documentId
Returns the value of thedocumentIdrecord component.- Returns:
- the value of the
documentIdrecord component
-