|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.head.HeaderItem
org.apache.wicket.markup.head.MetaDataHeaderItem
public class MetaDataHeaderItem
HeaderItem for meta informations such as <meta> tags or
canonical <link>
| Field Summary | |
|---|---|
static String |
LINK_TAG
|
static String |
META_TAG
|
| Constructor Summary | |
|---|---|
MetaDataHeaderItem(String tagName)
Build a new MetaDataHeaderItem having tagName as tag. |
|
| Method Summary | |
|---|---|
MetaDataHeaderItem |
addTagAttribute(String attributeName)
Add a minimized tag attribute to the item. |
MetaDataHeaderItem |
addTagAttribute(String attributeName,
Object attributeValue)
Add a tag attribute to the item. |
boolean |
equals(Object o)
|
static MetaDataHeaderItem |
forLinkTag(IModel<String> rel,
IModel<String> href)
Factory method to create <link> tag. |
static MetaDataHeaderItem |
forLinkTag(String rel,
String href)
Factory method to create <link> tag. |
static MetaDataHeaderItem |
forMetaTag(IModel<String> name,
IModel<String> content)
Factory method to create <meta> tag. |
static MetaDataHeaderItem |
forMetaTag(String name,
String content)
Factory method to create <meta> tag. |
String |
generateString()
Generate the string representation for the current item. |
Iterable<?> |
getRenderTokens()
|
int |
hashCode()
|
void |
render(Response response)
Renders the HeaderItem to the response. |
| Methods inherited from class org.apache.wicket.markup.head.HeaderItem |
|---|
getDependencies, getProvidedResources |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String META_TAG
public static final String LINK_TAG
| Constructor Detail |
|---|
public MetaDataHeaderItem(String tagName)
MetaDataHeaderItem having tagName as tag.
tagName - the name of the tag| Method Detail |
|---|
public MetaDataHeaderItem addTagAttribute(String attributeName,
Object attributeValue)
IModel,
the object wrapped inside the model is used as actual value.
attributeName - the attribute nameattributeValue - the attribute value
public MetaDataHeaderItem addTagAttribute(String attributeName)
attributeName - the attribute name
public String generateString()
public Iterable<?> getRenderTokens()
getRenderTokens in class HeaderItemHeaderItem can be identified by. If any of the tokens has
already been rendered, this HeaderItem will not be rendered.public void render(Response response)
HeaderItemHeaderItem to the response.
render in class HeaderItem
public static MetaDataHeaderItem forMetaTag(String name,
String content)
name - the 'name' attribute of the tagcontent - the 'content' attribute of the tag
MetaDataHeaderItem
public static MetaDataHeaderItem forMetaTag(IModel<String> name,
IModel<String> content)
name - the 'name' attribute of the tag as String modelcontent - the 'content' attribute of the tag as String model
MetaDataHeaderItem
public static MetaDataHeaderItem forLinkTag(String rel,
String href)
rel - the 'rel' attribute of the taghref - the 'href' attribute of the tag
MetaDataHeaderItem
public static MetaDataHeaderItem forLinkTag(IModel<String> rel,
IModel<String> href)
rel - the 'rel' attribute of the tag as String modelhref - the 'href' attribute of the tag as String model
MetaDataHeaderItempublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||