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.ActionPlacements
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.FieldArrayField
FieldArrayField.Keys
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.Keys
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
Orderable.ActionLabels, Orderable.ActionTypes, Orderable.EndpointTypes
Nested 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_ROWS
attribute.default String
Gets theFieldArrayGridField.Attributes.MAX_ROWS
attribute.default F
Sets 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, rowAction
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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, type
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
Methods 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, validationSchema
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.fields.FieldArrayField
addField, addField, addField, addFields, findField, getField
Methods 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, tooltip
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessage
Methods 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, orderableUrl
Methods 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_ROWS
attribute.- Returns:
- The configured maximum number of rows for the grid
- Throws:
IllegalArgumentException
- if no attribute exists at the key
-
findMaxRows
Finds theFieldArrayGridField.Attributes.MAX_ROWS
attribute.- Returns:
- the value of the attribute or
Optional.empty()
if not present.
-