Package org.apache.wicket.markup.head
Class HtmlImportHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.MetaDataHeaderItem
-
- org.apache.wicket.markup.head.HtmlImportHeaderItem
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class HtmlImportHeaderItem extends MetaDataHeaderItem
Header item class for HTML 5 imports.- Since:
- 6.19.0
- Author:
- Tobias Soloschenko, Andrea Del Bene
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.markup.head.MetaDataHeaderItem
LINK_TAG, META_TAG
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, boolean async)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, String media)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, String media, boolean async)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, IModel<String> media)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, IModel<String> media, boolean async)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
forImportLinkTag(String href)
Factory method to create <link> tag.static MetaDataHeaderItem
forImportLinkTag(String href, boolean async)
Factory method to create <link> tag.static MetaDataHeaderItem
forImportLinkTag(IModel<String> href)
Factory method to create <link> tag.static MetaDataHeaderItem
forImportLinkTag(IModel<String> href, boolean async)
Factory method to create <link> tag.static MetaDataHeaderItem
forLinkTag(String rel, String href, String media)
Factory method to create <link> tag.static MetaDataHeaderItem
forLinkTag(IModel<String> rel, IModel<String> href, IModel<String> media)
Factory method to create <link> tag.-
Methods inherited from class org.apache.wicket.markup.head.MetaDataHeaderItem
addTagAttribute, addTagAttribute, equals, forHttpEquiv, forHttpEquiv, forLinkTag, forLinkTag, forMetaTag, forMetaTag, generateString, getRenderTokens, hashCode, render
-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
-
-
-
-
Method Detail
-
forLinkTag
public static MetaDataHeaderItem forLinkTag(String rel, String href, String media)
Factory method to create <link> tag.- Parameters:
rel
- the 'rel' attribute of the taghref
- the 'href' attribute of the tagmedia
- the 'media' attribute of the tag- Returns:
- A new
MetaDataHeaderItem
-
forLinkTag
public static MetaDataHeaderItem forLinkTag(IModel<String> rel, IModel<String> href, IModel<String> media)
Factory method to create <link> tag.- Parameters:
rel
- the 'rel' attribute of the tag as String modelhref
- the 'href' attribute of the tag as String modelmedia
- the 'media' attribute of the tag as String model- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(String href)
Factory method to create <link> tag.- Parameters:
href
- the 'href' attribute of the tag as String- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(IModel<String> href)
Factory method to create <link> tag.- Parameters:
href
- the 'href' attribute of the tag as String model- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(String href, boolean async)
Factory method to create <link> tag.- Parameters:
href
- the 'href' attribute of the tag as Stringasync
- the 'async' attribute as boolean value- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(IModel<String> href, boolean async)
Factory method to create <link> tag.- Parameters:
href
- the 'href' attribute of the tag as String modelasync
- the 'async' attribute as boolean value- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import for- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the import- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, boolean async)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the importasync
- the 'async' attribute as boolean value- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, String media)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the importmedia
- the 'media' attribute of the tag- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, String media, boolean async)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the importmedia
- the 'media' attribute of the tagasync
- the 'async' attribute as boolean value- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, IModel<String> media)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the importmedia
- the 'media' attribute of the tag as String model- Returns:
- A new
MetaDataHeaderItem
-
forImportLinkTag
public static MetaDataHeaderItem forImportLinkTag(Class<? extends Page> pageClass, PageParameters pageParameters, IModel<String> media, boolean async)
Factory method to create lt;link> tag for html import.- Parameters:
pageClass
- the page class to generate the import forpageParameters
- the page parameters to apply to the importmedia
- the 'media' attribute of the tag as String modelasync
- the 'async' attribute as boolean value- Returns:
- A new
MetaDataHeaderItem
-
-