Package org.apache.wicket.markup.head
Class StringHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.StringHeaderItem
-
- All Implemented Interfaces:
Serializable
,IClusterable
- Direct Known Subclasses:
PageHeaderItem
public class StringHeaderItem extends HeaderItem
Free formHeaderItem
. No checks are performed on what is added to the header.- Author:
- papegaaij
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringHeaderItem(CharSequence string)
Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static StringHeaderItem
forString(CharSequence string)
Creates aStringHeaderItem
for the snippet.Iterable<?>
getRenderTokens()
CharSequence
getString()
int
hashCode()
void
render(Response response)
Renders theHeaderItem
to the response.String
toString()
-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
-
-
-
-
Constructor Detail
-
StringHeaderItem
public StringHeaderItem(CharSequence string)
Construct.- Parameters:
string
-
-
-
Method Detail
-
forString
public static StringHeaderItem forString(CharSequence string)
Creates aStringHeaderItem
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 theHeaderItem
to the response.- Specified by:
render
in classHeaderItem
-
getRenderTokens
public Iterable<?> getRenderTokens()
- Specified by:
getRenderTokens
in classHeaderItem
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has already been rendered, thisHeaderItem
will not be rendered.
-
-