@Model(adaptables=SlingHttpServletRequest.class, adapters={ResponsiveGrid.class,ComponentExporter.class}, defaultInjectionStrategy=OPTIONAL, resourceType="wcm/foundation/components/responsivegrid") @ProviderType public class ResponsiveGrid extends AbstractResource implements ResponsiveGridExporter
RESOURCE_TYPE_NON_EXISTING
Constructor and Description |
---|
ResponsiveGrid() |
Modifier and Type | Method and Description |
---|---|
com.day.cq.wcm.foundation.model.impl.export.AllowedComponentsExporter |
getAllowedComponents()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getColumnClassNames() |
int |
getColumnCount() |
java.util.Collection<? extends ResponsiveColumn> |
getColumns() |
java.lang.String |
getCssClass()
Deprecated.
|
<T extends Resource> |
getEffectiveResource() |
AllowedComponentsExporter |
getExportedAllowedComponents() |
java.util.Map<java.lang.String,? extends ComponentExporter> |
getExportedItems()
Returns the map of all exported child items (resource names from Sling Model classes).
|
java.lang.String[] |
getExportedItemsOrder()
Returns the order of items in the map.
|
java.lang.String |
getExportedType()
Returns the type of the resource for which the export is performed.
|
java.lang.String |
getGridClassNames() |
java.util.List<ResponsiveColumn> |
getParagraphs()
Deprecated.
Use
getColumns() |
java.lang.String |
getPath()
Returns the absolute path of this resource in the resource tree.
|
ResourceMetadata |
getResourceMetadata()
Deprecated.
|
ResourceResolver |
getResourceResolver()
Deprecated.
|
java.lang.String |
getResourceSuperType()
Deprecated.
|
java.lang.String |
getResourceType()
Deprecated.
|
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
adaptTo, setAdapterManager, unsetAdapterManager
public java.lang.String getGridClassNames()
getGridClassNames
in interface ResponsiveGridExporter
public java.util.Map<java.lang.String,java.lang.String> getColumnClassNames()
getColumnClassNames
in interface ResponsiveGridExporter
public int getColumnCount()
getColumnCount
in interface ResponsiveGridExporter
@Nonnull public java.util.Collection<? extends ResponsiveColumn> getColumns()
public java.util.List<ResponsiveColumn> getParagraphs()
getColumns()
public java.lang.String getCssClass()
getGridClassNames()
@Nonnull public <T extends Resource> T getEffectiveResource()
T
- The type of the resourceTemplatedResource
AdobePatentID="P6273-US"@Nonnull public java.lang.String getPath()
Resource
@Deprecated public com.day.cq.wcm.foundation.model.impl.export.AllowedComponentsExporter getAllowedComponents()
getAllowedComponents
in interface ResponsiveGridExporter
public AllowedComponentsExporter getExportedAllowedComponents()
getExportedAllowedComponents
in interface ResponsiveGridExporter
@Nonnull public java.lang.String getResourceType()
Resource
ResourceResolver
is free to set this to any suitable value such
as the primary node type of the JCR node from which the resource is
created.
If the resource instance represents a resource which is not actually
existing, this method returns Resource.RESOURCE_TYPE_NON_EXISTING
.
getResourceType
in interface Resource
public java.lang.String getResourceSuperType()
Resource
null
is returned.
A resource might return a resource super type to overwrite the
resource type hierarchy.
If a client is interested in the effective resource super type
of a resource, it should call ResourceResolver.getParentResourceType(Resource)
.getResourceSuperType
in interface Resource
null
.@Nonnull public ResourceMetadata getResourceMetadata()
Resource
ResourceMetadata
object returned is implementation specific
except for the ResourceMetadata.RESOLUTION_PATH
property which is
required to be set to the part of the request URI used to resolve the
resource.getResourceMetadata
in interface Resource
ResourceMetadata
@Nonnull public ResourceResolver getResourceResolver()
Resource
ResourceResolver
from which this resource has been
retrieved.getResourceResolver
in interface Resource
@Nonnull public java.util.Map<java.lang.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
ComponentExporter.getExportedType()
@Nonnull public java.lang.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
@Nonnull public java.lang.String getExportedType()
ComponentExporter
Returns the type of the resource for which the export is performed.
NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.
getExportedType
in interface ComponentExporter
Copyright © 2010 - 2020 Adobe. All Rights Reserved