Interface HtmlPageItem
-
public interface HtmlPageItem
This 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 class
HtmlPageItem.Element
enum
that defines the possible HTML elements for a page itemstatic class
HtmlPageItem.Location
enum
that defines possible insert positions for a page item.
-
Field Summary
Fields Modifier and Type Field Description static String
NN_ATTRIBUTES
Deprecated.since 12.18.0static String
PN_ELEMENT
Deprecated.since 12.18.0static String
PN_HREF
HREF attribute forHtmlPageItem.Element.LINK
page itemsstatic String
PN_LOCATION
Deprecated.since 12.18.0static String
PN_SRC
SRC attribute forHtmlPageItem.Element.SCRIPT
page items
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Map<String,String>
getAttributes()
Returns the HTML attributes and values for the page item element.default HtmlPageItem.Element
getElement()
Returns theHtmlPageItem.Element
type for the page item.default HtmlPageItem.Location
getLocation()
Returns theHtmlPageItem.Location
where the page item should be inserted.
-
-
-
Field Detail
-
PN_ELEMENT
@Deprecated static final 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 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 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 String PN_HREF
HREF attribute forHtmlPageItem.Element.LINK
page items- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
- See Also:
- Constant Field Values
-
PN_SRC
static final String PN_SRC
SRC attribute forHtmlPageItem.Element.SCRIPT
page 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.Element
type for the page item.- Returns:
HtmlPageItem.Element
type- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
getLocation
default HtmlPageItem.Location getLocation()
Returns theHtmlPageItem.Location
where the page item should be inserted.- Returns:
HtmlPageItem.Location
where item should be inserted- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
-