Class ResponsiveGrid
- All Implemented Interfaces:
ComponentExporter,ContainerExporter,ResponsiveGridExporter,Adaptable,Resource
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the style system information associated with the current grid.intCollection<? extends ResponsiveColumn> Deprecated.<T extends Resource>
TMap<String, ? extends ComponentExporter> Returns the map of all exported child items (resource names from Sling Model classes).String[]Returns the order of items in the map.Returns the type of the resource for which the export is performed.Deprecated.UsegetColumns()getPath()Returns the absolute path of this resource in the resource tree.Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildrenMethods inherited from class org.apache.sling.api.adapter.SlingAdaptable
adaptTo, setAdapterManager, unsetAdapterManager
-
Constructor Details
-
ResponsiveGrid
public ResponsiveGrid()
-
-
Method Details
-
getGridClassNames
- Specified by:
getGridClassNamesin interfaceResponsiveGridExporter- Returns:
- The CSS class names to be applied to the current grid.
-
getColumnClassNames
- Specified by:
getColumnClassNamesin interfaceResponsiveGridExporter- Returns:
- The CSS class names associated with each responsive grid column and listed by column name
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceResponsiveGridExporter- Returns:
- The number of columns available for direct children in the grid.
-
getColumns
- Returns:
- The columns of the current responsive grid.
-
getEffectiveResource
- Type Parameters:
T- The type of the resource- Returns:
- Returns the resource optionally wrapped into a
TemplatedResourceAdobePatentID="P6273-US"
-
getPath
Description copied from interface:ResourceReturns the absolute path of this resource in the resource tree. -
getExportedAllowedComponents
- Specified by:
getExportedAllowedComponentsin interfaceResponsiveGridExporter- Returns:
- Allowed Components object for the current grid.
-
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
- 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
-
getExportedType
Description copied from interface:ComponentExporterReturns 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.
- Specified by:
getExportedTypein interfaceComponentExporter- Returns:
- the type of the component
-
getParagraphs
Deprecated.UsegetColumns()- Returns:
- The columns of the current responsive grid.
-
getCssClass
Deprecated.- Returns:
- The CSS class names to be applied to the current grid.
-
getResourceType
Deprecated.Description copied from interface:ResourceThe resource type is meant to point to rendering/processing scripts, editing dialogs, etc. It is usually a path in the repository, where scripts and other tools definitions are found, but theResourceResolveris 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.- Specified by:
getResourceTypein interfaceResource- Returns:
- The resource type
-
getResourceSuperType
Deprecated.Description copied from interface:ResourceReturns the super type of the resource if the resource defines its own super type. Otherwisenullis 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 callResourceResolver.getParentResourceType(Resource).- Specified by:
getResourceSuperTypein interfaceResource- Returns:
- The super type of the resource or
null.
-
getResourceMetadata
Deprecated.Description copied from interface:ResourceReturns the meta data of this resource. The concrete data contained in theResourceMetadataobject returned is implementation specific except for theResourceMetadata.RESOLUTION_PATHproperty which is required to be set to the part of the request URI used to resolve the resource.- Specified by:
getResourceMetadatain interfaceResource- Returns:
- The resource meta data
- See Also:
-
getResourceResolver
Deprecated.Description copied from interface:ResourceReturns theResourceResolverfrom which this resource has been retrieved.- Specified by:
getResourceResolverin interfaceResource- Returns:
- The resource resolver
-
getAppliedCssClasses
Description copied from interface:ResponsiveGridExporterReturns the style system information associated with the current grid.- Specified by:
getAppliedCssClassesin interfaceResponsiveGridExporter- Returns:
- CSS classes selected by the content author delimited using a SPACE character
-
getGridClassNames()