Interface BadgeColumn<C extends BadgeColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable
- All Known Implementing Classes:
DefaultBadgeColumn
Represents the metadata for a
ColumnTypes.BADGE.- Author:
- Jon Fleschler (jfleschler)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault Endpoint<?>default ChydrateEndpoint(Endpoint<?> endpoint) Configures the hydration endpoint for the lookup.default ChydrateEndpoint(UnaryOperator<Endpoint<?>> fn) Configures the hydration endpoint for the lookup.default ChydrateScope(String scope) ConfigureshydrateEndpoint(UnaryOperator)scope.default ChydrateUrl(String url) ConfigureshydrateEndpoint(UnaryOperator)url.default ChydrateUrl(String url, String scope) ConfigureshydrateEndpoint(UnaryOperator)url and scope.default CmaxBadgesToShow(int maxBadgesToShow) Sets the maximum number of badges to show in the grid.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, widthMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, addSimpleComponent, apply, attribute, augmentable, 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, getAugmentableFlag, 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, setAugmentable, 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, removeCssClass
-
Method Details
-
maxBadgesToShow
Sets the maximum number of badges to show in the grid.- Parameters:
maxBadgesToShow- the maximum number of badges to show- Returns:
- this
-
hydrateEndpoint
Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.
- Parameters:
endpoint- the hydrate endpoint- Returns:
- this
-
hydrateEndpoint
Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.
- Parameters:
fn- a function to configure the hydrate endpoint- Returns:
- this
-
hydrateUrl
ConfigureshydrateEndpoint(UnaryOperator)url.- Returns:
- this
-
hydrateScope
ConfigureshydrateEndpoint(UnaryOperator)scope.- Returns:
- this
-
hydrateUrl
ConfigureshydrateEndpoint(UnaryOperator)url and scope.- Returns:
- this
-
getHydrateEndpoint
- Returns:
- the hydrate endpoint
-
findHydrateEndpoint
- Returns:
- an optional with hydrate endpoint, or empty
-