Modifier and Type | Field and Description |
---|---|
protected com.day.cq.wcm.api.components.Component |
component
The component.
|
protected @Nullable com.day.cq.wcm.api.components.ComponentContext |
componentContext
The component context.
|
protected SlingHttpServletRequest |
request
The current request.
|
protected Resource |
resource
The current resource.
|
Constructor and Description |
---|
AbstractComponentImpl() |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getAppliedCssClasses()
|
protected @NotNull ComponentData |
getComponentData()
Override this method to provide a different data model for your component.
|
protected com.day.cq.wcm.api.Page |
getCurrentPage()
Getter for current page.
|
@Nullable ComponentData |
getData()
|
@NotNull String |
getExportedType() |
@NotNull String |
getId()
Returns the HTML id of the the component's root element
|
protected void |
setCurrentPage(com.day.cq.wcm.api.Page currentPage)
Setter for current page.
|
protected SlingHttpServletRequest request
protected Resource resource
@Nullable protected com.day.cq.wcm.api.components.Component component
@Nullable protected @Nullable com.day.cq.wcm.api.components.ComponentContext componentContext
protected com.day.cq.wcm.api.Page getCurrentPage()
Page
protected void setCurrentPage(com.day.cq.wcm.api.Page currentPage)
currentPage
- The Page
to set@NotNull public @NotNull String getId()
Component
@NotNull public @NotNull String getExportedType()
getExportedType
in interface com.adobe.cq.export.json.ComponentExporter
getExportedType
in interface Component
ComponentExporter.getExportedType()
@Nullable public @Nullable ComponentData getData()
@Nullable public @Nullable String getAppliedCssClasses()
getAppliedCssClasses
in interface Component
@NotNull protected @NotNull ComponentData getComponentData()
getData()
in case the datalayer is activated.Copyright © 2022. All rights reserved.