|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 obj)
|
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()
|
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, hashCode, 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 tagMethod 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 HeaderItem
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.public void render(Response response)
HeaderItem
HeaderItem
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
MetaDataHeaderItem
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |