Package org.apache.wicket.markup.head
Class CssContentHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.CssHeaderItem
-
- org.apache.wicket.markup.head.CssContentHeaderItem
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.wicket.util.io.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(java.lang.CharSequence css, java.lang.String id, java.lang.String condition)
Creates a newCSSContentHeaderItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.CharSequence
getCss()
java.lang.Iterable<?>
getRenderTokens()
int
hashCode()
void
render(org.apache.wicket.request.Response response)
Renders theHeaderItem
to the response.java.lang.String
toString()
-
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem
forCSS, forCSS, forReference, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, forUrl, getCondition, getId, internalRenderCSSReference, setId
-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
-
-
-
-
Constructor Detail
-
CssContentHeaderItem
public CssContentHeaderItem(java.lang.CharSequence css, java.lang.String id, java.lang.String condition)
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.condition
- the condition when the css should be applied
-
-
Method Detail
-
getCss
public java.lang.CharSequence getCss()
- Returns:
- the css content to be rendered.
-
render
public void render(org.apache.wicket.request.Response response)
Description copied from class:HeaderItem
Renders theHeaderItem
to the response.- Specified by:
render
in classHeaderItem
-
getRenderTokens
public java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classCssHeaderItem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCssHeaderItem
-
-