Package org.apache.wicket.markup.head
Class CssContentHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.AbstractCspHeaderItem
-
- org.apache.wicket.markup.head.CssHeaderItem
-
- org.apache.wicket.markup.head.CssContentHeaderItem
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class CssContentHeaderItem extends CssHeaderItem
HeaderItem
for internal (embedded in the header) css content.- Author:
- papegaaij
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CssContentHeaderItem(CharSequence css, String id)
Creates a newCSSContentHeaderItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CharSequence
getCss()
Iterable<?>
getRenderTokens()
int
hashCode()
void
render(Response response)
Renders theHeaderItem
to the response.String
toString()
-
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem
forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getId, setId
-
Methods inherited from class org.apache.wicket.markup.head.AbstractCspHeaderItem
getNonce, setNonce
-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
-
-
-
-
Constructor Detail
-
CssContentHeaderItem
public CssContentHeaderItem(CharSequence css, String id)
Creates a newCSSContentHeaderItem
.- Parameters:
css
- css content to be rendered.id
- unique id for the <style> element. This can benull
, however in that case the ajax header contribution can't detect duplicate CSS fragments.
-
-
Method Detail
-
getCss
public CharSequence getCss()
- Returns:
- the css content to be rendered.
-
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.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCssHeaderItem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCssHeaderItem
-
-