Interface FieldArrayGridField<F extends FieldArrayGridField<F>>
- All Superinterfaces:
ActionGrid<F>,Comparable<F>,Component<F>,Copyable<F>,CustomCssComponent<F>,Field<F>,FieldArrayField<F>,FormComponent<F>,Grid<F>,Orderable<F>,Selectable<F>,Serializable
- All Known Implementing Classes:
DefaultFieldArrayGridField
public interface FieldArrayGridField<F extends FieldArrayGridField<F>>
extends FieldArrayField<F>, Orderable<F>
Represents the metadata for a
FieldTypes.FIELD_ARRAY_GRID field. These type of
collections are most useful for collections that are resident on the parent document, such as
Product's `attributes` collection.
This should not be used for collections with references to external documents.- Author:
- Dima Myroniuk (dmyroniuk)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
ActionGrid.ActionKeys, ActionGrid.ActionPlacementsNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.FieldArrayField
FieldArrayField.KeysNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.KeysNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
Orderable.ActionLabels, Orderable.ActionTypes, Orderable.EndpointTypesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
Selectable.ConfigureSelectable, Selectable.SelectableTypes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptionFinds theFieldArrayGridField.Attributes.MAX_ROWSattribute.default StringGets theFieldArrayGridField.Attributes.MAX_ROWSattribute.default FSets the key that matches the form value to determine the maximum number of rows/entries for the grid.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
addGridAction, addGridAction, addGridActionGroup, addRowAction, addRowAction, findGridAction, findRowAction, getGridAction, getRowAction, gridAction, removeGridAction, removeRowAction, rowActionMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClassMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, decorated, decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getReadOnlyConditionals, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, isTargetCollection, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, readOnlyConditional, readOnlyConditionals, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setReadOnlyConditionals, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, targetIsCollection, targetIsNotCollection, validationMethod, validationSchema, validationSchemaMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.FieldArrayField
addField, addField, addField, addFields, findField, getFieldMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltipMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessageMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
addOrderableAction, disableDragIfAllUnsorted, disableDragIfAllUnsorted, enableDragIfAllUnsorted, findOrderableAction, findOrderableEndpoint, getOrderableAction, getOrderableEndpoint, isOrderable, notOrderable, orderable, orderable, orderable, orderableAction, orderableEndpoint, orderableEndpoint, orderableScope, orderableUrl, orderableUrlMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
multiPageSelectable, multiPageSelectableWithExclusions, multipleSelectable, notSelectable, selectable, selectable, selectable, selectableType, singleSelectable
-
Method Details
-
maxRows
Sets the key that matches the form value to determine the maximum number of rows/entries for the grid. When the maximum number of rows/entries for a grid is reached, the grid will prevent the user from adding any more entries. If this attribute is unset, there is no imposed limit to the number of entries the user can add to the grid.- Parameters:
maxRowsKey- The key that gets the value for the maximum row limit- Returns:
- this field
- Since:
- 2.0.6
-
getMaxRows
Gets theFieldArrayGridField.Attributes.MAX_ROWSattribute.- Returns:
- The configured maximum number of rows for the grid
- Throws:
IllegalArgumentException- if no attribute exists at the key
-
findMaxRows
Finds theFieldArrayGridField.Attributes.MAX_ROWSattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-