org.apache.wicket.markup.head
Class StringHeaderItem
java.lang.Object
org.apache.wicket.markup.head.HeaderItem
org.apache.wicket.markup.head.StringHeaderItem
- Direct Known Subclasses:
- PageHeaderItem
public class StringHeaderItem
- extends HeaderItem
Free form HeaderItem
. No checks are performed on what is added to the header.
- Author:
- papegaaij
StringHeaderItem
public StringHeaderItem(CharSequence string)
- Construct.
- Parameters:
string
-
forString
public static StringHeaderItem forString(CharSequence string)
- Creates a
StringHeaderItem
for the snippet.
- Parameters:
string
- string to be rendered to head
- Returns:
- A newly created
StringHeaderItem
.
getString
public CharSequence getString()
- Returns:
- the string that gets added to the header.
render
public void render(Response response)
- Description copied from class:
HeaderItem
- Renders the
HeaderItem
to the response.
- Specified by:
render
in class HeaderItem
getRenderTokens
public Iterable<?> getRenderTokens()
- Specified by:
getRenderTokens
in class HeaderItem
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.