org.apache.wicket.core.util.string
Class CssUtils

java.lang.Object
  extended by org.apache.wicket.core.util.string.CssUtils

public final class CssUtils
extends Object

Utility methods for CSS.

Author:
eelcohillenius

Field Summary
static String INLINE_CLOSE_TAG
          CSS inline close tag
static String INLINE_OPEN_TAG
          CSS inline open tag
 
Method Summary
static void writeCloseTag(Response response)
           
static void writeCss(Response response, CharSequence text, String id)
          Write the simple text to the response object surrounded by a style tag.
static void writeLinkUrl(Response response, CharSequence url, CharSequence media)
          Writes a reference to a css file in the response object
static void writeOpenTag(Response response, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INLINE_OPEN_TAG

public static final String INLINE_OPEN_TAG
CSS inline open tag

See Also:
Constant Field Values

INLINE_CLOSE_TAG

public static final String INLINE_CLOSE_TAG
CSS inline close tag

See Also:
Constant Field Values
Method Detail

writeCss

public static void writeCss(Response response,
                            CharSequence text,
                            String id)
Write the simple text to the response object surrounded by a style tag.

Parameters:
response - The HTTP: response
text - The text to added in between the style tags
id - Unique identifier of element

writeOpenTag

public static void writeOpenTag(Response response,
                                String id)
Parameters:
response -
id -

writeCloseTag

public static void writeCloseTag(Response response)
Parameters:
response -

writeLinkUrl

public static void writeLinkUrl(Response response,
                                CharSequence url,
                                CharSequence media)
Writes a reference to a css file in the response object

Parameters:
response - the response to write to
url - the url of the css reference
media - the CSS media


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.