Interface BadgeTileComponent<C extends BadgeTileComponent<C>>
- All Superinterfaces:
Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable,TileComponent<C>
- All Known Implementing Classes:
DefaultBadgeTileComponent
Represents the metadata for a
TileComponentTypes.BADGE.- Since:
- Metadata Service 2.0.7, Release Train 2.3.0
- 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.TileComponent
TileComponent.TileComponentAttributes -
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 tile.Methods 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, removeCssClassMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.TileComponent
getName, name, setName
-
Method Details
-
maxBadgesToShow
Sets the maximum number of badges to show in the tile.- 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
-