Class RowBuilderWidgetRenderer.Builder
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.dashboard.AbstractWidgetMetaDataBuilder
com.kingsrook.qqq.backend.core.actions.dashboard.widgets.RowBuilderWidgetRenderer.Builder
-
Field Summary
Fields inherited from class com.kingsrook.qqq.backend.core.model.metadata.dashboard.AbstractWidgetMetaDataBuilder
widgetMetaData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithAssociationName
(String associationName) for the use-case on a record view/edit screen, set the association name that the records are for.withDefaultValuesForNewRowsFromParentRecord
(Map<String, Serializable> defaultValuesForNewRowsFromParentRecord) for the use-case on a record view/edit screen, set the name of the "parent" table - e.g., the one that has the association.withFields
(List<QFieldMetaData> fields) set the fields for the widgetwithIsEditable
(Boolean isEditable) set if the data is editable or not.withIsForRecordViewAndEditScreen
(Boolean isForRecordViewAndEditScreen) set if the widget it meant for use on record view/edit screens, in which case, that determines if editable or not.set the label shown in UI for the widgetwithMayReorderRows
(Boolean mayReorderRows) set if user can reorder rows.set name for the widget, though generally wouldwithOrderByFieldName
(String orderByFieldName) set the field in which the sequence/order-by value is stored. only applies if mayReorderRows is true.withOutputFieldName
(String outputFieldName) set the fieldName that the records are written to when data comes out of the widget, e.g., into process values, or a parent-record.withParentTableName
(String parentTableName) for the use-case on a record view/edit screen, set the name of the "parent" table - e.g., the one that has the association.withUseModalEditor
(Boolean useModalEditor) set whether edits happen inline, or in modal editor.Methods inherited from class com.kingsrook.qqq.backend.core.model.metadata.dashboard.AbstractWidgetMetaDataBuilder
getWidgetMetaData
-
Constructor Details
-
Builder
Constructor
-
-
Method Details
-
withName
set name for the widget, though generally would -
withLabel
set the label shown in UI for the widget -
withFields
set the fields for the widget -
withUseModalEditor
set whether edits happen inline, or in modal editor. -
withIsEditable
set if the data is editable or not. note that, if isForRecordViewAndEditScreen, this is ignored, as its whether you're on the view or edit screen that determines isEditable. -
withMayReorderRows
set if user can reorder rows. if set, then orderByFieldName must also be set. -
withOrderByFieldName
set the field in which the sequence/order-by value is stored. only applies if mayReorderRows is true. -
withIsForRecordViewAndEditScreen
public RowBuilderWidgetRenderer.Builder withIsForRecordViewAndEditScreen(Boolean isForRecordViewAndEditScreen) set if the widget it meant for use on record view/edit screens, in which case, that determines if editable or not. -
withOutputFieldName
set the fieldName that the records are written to when data comes out of the widget, e.g., into process values, or a parent-record. -
withAssociationName
for the use-case on a record view/edit screen, set the association name that the records are for. -
withParentTableName
for the use-case on a record view/edit screen, set the name of the "parent" table - e.g., the one that has the association. -
withDefaultValuesForNewRowsFromParentRecord
public RowBuilderWidgetRenderer.Builder withDefaultValuesForNewRowsFromParentRecord(Map<String, Serializable> defaultValuesForNewRowsFromParentRecord) for the use-case on a record view/edit screen, set the name of the "parent" table - e.g., the one that has the association.- Parameters:
defaultValuesForNewRowsFromParentRecord
- map with keys of 'fromFieldName' (e.g., a field name in the parent record) →
-