@ConsumerType public interface Container extends Component, ContainerExporter
Modifier and Type | Field and Description |
---|---|
static String |
PN_BACKGROUND_COLOR
Name of the resource property that indicates the background color
|
static String |
PN_BACKGROUND_COLOR_ENABLED
Name of the configuration policy property that indicates if background colors are enabled
|
static String |
PN_BACKGROUND_COLOR_SWATCHES_ONLY
Name of the configuration policy property that indicates if background colors are to be restricted to predefined values
|
static String |
PN_BACKGROUND_IMAGE_ENABLED
Name of the configuration policy property that indicates if background images are enabled
|
static String |
PN_BACKGROUND_IMAGE_REFERENCE
Name of the resource property that indicates that path to the background image
|
Modifier and Type | Method and Description |
---|---|
default @Nullable String |
getBackgroundStyle()
Returns the background CSS style to be applied to the component's root element
|
default @NotNull Map<String,? extends ComponentExporter> |
getExportedItems()
Returns the map of all exported child items (resource names from Sling Model classes).
|
default @NotNull String[] |
getExportedItemsOrder()
Returns the order of items in the map.
|
default @NotNull List<ListItem> |
getItems()
Returns a list of container items
|
getData, getExportedType, getId
static final String PN_BACKGROUND_IMAGE_ENABLED
static final String PN_BACKGROUND_COLOR_ENABLED
static final String PN_BACKGROUND_COLOR_SWATCHES_ONLY
static final String PN_BACKGROUND_IMAGE_REFERENCE
static final String PN_BACKGROUND_COLOR
@NotNull default @NotNull List<ListItem> getItems()
@Nullable default @Nullable String getBackgroundStyle()
@NotNull default @NotNull Map<String,? extends ComponentExporter> getExportedItems()
ContainerExporter
Returns 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.
getExportedItems
in interface ContainerExporter
ContainerExporter.getExportedItems()
@NotNull default @NotNull String[] getExportedItemsOrder()
ContainerExporter
Returns 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.
getExportedItemsOrder
in interface ContainerExporter
ContainerExporter.getExportedItemsOrder()
Copyright © 2010 - 2020 Adobe. All Rights Reserved