Class QPossibleValuePicker
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.possiblevalues.QPossibleValuePicker
- All Implemented Interfaces:
Serializable
Declares that a table-type possible value source is chosen with a record
picker (a searchable, filterable, paged dialog) rather than only an inline
dropdown - for sources over tables that grow large (e.g., 100,000+ media).
Every field that uses the source gets the picker. The fields named here
are the only ones the possible-values API will filter or sort on, or
return per option, for a picker request: a picker never exposes other
columns of the source table.
- thumbnailField: an image URL shown for each option (and the selection).
- previewField: a larger image URL for the preview pane (else thumbnail).
- subtitleFields: short secondary text under each option label.
- detailFields: shown in the preview pane (e.g., dimensions, size, alt).
- filterFields: offered as filters; their types/PVSes drive the controls.
- searchFields: matched with CONTAINS (default: the source searchFields).
- sorts: the offered orderings; the first is the default. A sort on the
primary key alone is paged by keyset (no OFFSET, no count).
- pageSize: options per page (capped by the API).
- uploadProcessName / uploadResultIdField: a process the picker can run
to add a record (e.g., upload an image); when it completes, the new
record's id is read from this process output value and selected.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOne ordering offered by the picker. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for detailFieldsEvery field a picker request may return per option (thumbnail, preview, subtitle and detail fields), in declaration order, without duplicates.Getter for filterFieldsGetter for pageSizeGetter for previewFieldGetter for searchFieldsgetSorts()Getter for sortsGetter for subtitleFieldsGetter for thumbnailFieldGetter for uploadProcessNameGetter for uploadResultIdFieldvoidsetDetailFields(List<String> detailFields) Setter for detailFieldsvoidsetFilterFields(List<String> filterFields) Setter for filterFieldsvoidsetPageSize(Integer pageSize) Setter for pageSizevoidsetPreviewField(String previewField) Setter for previewFieldvoidsetSearchFields(List<String> searchFields) Setter for searchFieldsvoidsetSorts(List<QPossibleValuePicker.Sort> sorts) Setter for sortsvoidsetSubtitleFields(List<String> subtitleFields) Setter for subtitleFieldsvoidsetThumbnailField(String thumbnailField) Setter for thumbnailFieldvoidsetUploadProcessName(String uploadProcessName) Setter for uploadProcessNamevoidsetUploadResultIdField(String uploadResultIdField) Setter for uploadResultIdFieldwithDetailFields(List<String> detailFields) Fluent setter for detailFieldswithFilterFields(List<String> filterFields) Fluent setter for filterFieldswithPageSize(Integer pageSize) Fluent setter for pageSizewithPreviewField(String previewField) Fluent setter for previewFieldwithSearchFields(List<String> searchFields) Fluent setter for searchFieldsFluent adder for one sortwithSorts(List<QPossibleValuePicker.Sort> sorts) Fluent setter for sortswithSubtitleFields(List<String> subtitleFields) Fluent setter for subtitleFieldswithThumbnailField(String thumbnailField) Fluent setter for thumbnailFieldwithUploadProcessName(String uploadProcessName) Fluent setter for uploadProcessNamewithUploadResultIdField(String uploadResultIdField) Fluent setter for uploadResultIdField
-
Constructor Details
-
QPossibleValuePicker
public QPossibleValuePicker()
-
-
Method Details
-
getDisplayFieldNames
-
getThumbnailField
Getter for thumbnailField -
setThumbnailField
Setter for thumbnailField -
withThumbnailField
Fluent setter for thumbnailField -
getPreviewField
Getter for previewField -
setPreviewField
Setter for previewField -
withPreviewField
Fluent setter for previewField -
getSubtitleFields
-
setSubtitleFields
-
withSubtitleFields
Fluent setter for subtitleFields -
getDetailFields
-
setDetailFields
-
withDetailFields
Fluent setter for detailFields -
getFilterFields
-
setFilterFields
-
withFilterFields
Fluent setter for filterFields -
getSearchFields
-
setSearchFields
-
withSearchFields
Fluent setter for searchFields -
getSorts
Getter for sorts -
setSorts
Setter for sorts -
withSorts
Fluent setter for sorts -
withSort
Fluent adder for one sort -
getPageSize
Getter for pageSize -
setPageSize
Setter for pageSize -
withPageSize
Fluent setter for pageSize -
getUploadProcessName
Getter for uploadProcessName -
setUploadProcessName
Setter for uploadProcessName -
withUploadProcessName
Fluent setter for uploadProcessName -
getUploadResultIdField
Getter for uploadResultIdField -
setUploadResultIdField
Setter for uploadResultIdField -
withUploadResultIdField
Fluent setter for uploadResultIdField
-