Interface HtmlPageItem
-
public interface HtmlPageItemThis interface defines items that can be included on a page.- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHtmlPageItem.Elementenumthat defines the possible HTML elements for a page itemstatic classHtmlPageItem.Locationenumthat defines possible insert positions for a page item.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNN_ATTRIBUTESDeprecated.since 12.18.0static java.lang.StringPN_ELEMENTDeprecated.since 12.18.0static java.lang.StringPN_HREFHREF attribute forHtmlPageItem.Element.LINKpage itemsstatic java.lang.StringPN_LOCATIONDeprecated.since 12.18.0static java.lang.StringPN_SRCSRC attribute forHtmlPageItem.Element.SCRIPTpage items
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns the HTML attributes and values for the page item element.default HtmlPageItem.ElementgetElement()Returns theHtmlPageItem.Elementtype for the page item.default HtmlPageItem.LocationgetLocation()Returns theHtmlPageItem.Locationwhere the page item should be inserted.
-
-
-
Field Detail
-
PN_ELEMENT
@Deprecated static final java.lang.String PN_ELEMENT
Deprecated.since 12.18.0Property name that defines the type of the HTML element rendered by the page item- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
PN_LOCATION
@Deprecated static final java.lang.String PN_LOCATION
Deprecated.since 12.18.0Property that defines the location (header or footer) where the page item should be inserted- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
NN_ATTRIBUTES
@Deprecated static final java.lang.String NN_ATTRIBUTES
Deprecated.since 12.18.0Sub-node that holds the page item's attributes- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
PN_HREF
static final java.lang.String PN_HREF
HREF attribute forHtmlPageItem.Element.LINKpage items- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
PN_SRC
static final java.lang.String PN_SRC
SRC attribute forHtmlPageItem.Element.SCRIPTpage items- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getElement
default HtmlPageItem.Element getElement()
Returns theHtmlPageItem.Elementtype for the page item.- Returns:
HtmlPageItem.Elementtype- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
getLocation
default HtmlPageItem.Location getLocation()
Returns theHtmlPageItem.Locationwhere the page item should be inserted.- Returns:
HtmlPageItem.Locationwhere item should be inserted- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
getAttributes
default java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns the HTML attributes and values for the page item element.- Returns:
- HTML attributes and values
- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
-