Interface Container
- All Superinterfaces:
Component,ComponentExporter,ContainerExporter
- All Known Subinterfaces:
Accordion,Carousel,LayoutContainer,PanelContainer,Tabs
A base interface to be extended by all containers.
A container is a component that provides access to child resources.
If the container contains panels, such as the
Carousel, Tabs and Accordion models, then
the PanelContainer class should be used instead.- Since:
- com.adobe.cq.wcm.core.components.models 12.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the resource property that indicates the background colorstatic final StringName of the configuration policy property that indicates if background colors are enabledstatic final StringName of the configuration policy property that indicates if background colors are to be restricted to predefined valuesstatic final StringName of the configuration policy property that indicates if background images are enabledstatic final StringName of the resource property that indicates that path to the background image -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringReturns the background CSS style to be applied to the component's root elementdefault @NotNull List<? extends ContainerItem> Returns a list of container items.default @NotNull Map<String, ? extends ComponentExporter> Returns the map of all exported child items (resource names from Sling Model classes).default @NotNull String[]Returns the order of items in the map.getItems()Deprecated.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Field Details
-
PN_BACKGROUND_IMAGE_ENABLED
Name of the configuration policy property that indicates if background images are enabled- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
-
PN_BACKGROUND_COLOR_ENABLED
Name of the configuration policy property that indicates if background colors are enabled- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
-
PN_BACKGROUND_COLOR_SWATCHES_ONLY
Name of the configuration policy property that indicates if background colors are to be restricted to predefined values- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
-
PN_BACKGROUND_IMAGE_REFERENCE
Name of the resource property that indicates that path to the background image- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
-
PN_BACKGROUND_COLOR
Name of the resource property that indicates the background color- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
-
-
Method Details
-
getItems
Deprecated.since 12.17.0 - usegetChildren()Returns a list of container items- Returns:
- List of container items
- Since:
- com.adobe.cq.wcm.core.components.models 12.5.0
-
getChildren
Returns a list of container items.- Returns:
- List of container items.
- Since:
- com.adobe.cq.wcm.core.components.models 12.17.0
-
getBackgroundStyle
Returns the background CSS style to be applied to the component's root element- Returns:
- CSS style string for the component's root element
- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
getExportedItems
Description copied from interface:ContainerExporterReturns the map of all exported child items (resource names from Sling Model classes).
NOTE: Methods whose JSON serialization would lead to the same JSON property name (":items") will not be serialized.
- Specified by:
getExportedItemsin interfaceContainerExporter- Returns:
- the map of all exported child items
- Since:
- com.adobe.cq.wcm.core.components.models 12.5.0
- See Also:
-
getExportedItemsOrder
Description copied from interface:ContainerExporterReturns the order of items in the map.
NOTE: This information is required because the JSON specification and most implementations don't provide a stable order of items in JSON objects. Methods whose JSON serialization would lead to the same JSON property name (":order") will not be serialized.
- Specified by:
getExportedItemsOrderin interfaceContainerExporter- Returns:
- the order of the items in the map; the array can be empty if the item order is not provided by the underlying persistence layer
- Since:
- com.adobe.cq.wcm.core.components.models 12.5.0
- See Also:
-
getChildren()