public final class CssUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INLINE_CLOSE_TAG
CSS inline close tag
|
static String |
INLINE_OPEN_TAG
CSS inline open tag
|
static String |
INLINE_OPEN_TAG_START
start of CSS inline open tag
|
Modifier and Type | Method and Description |
---|---|
static String |
key(Class<?> scope,
String facet)
Get a standardized key for a CSS class.
|
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,
String markupId)
Writes a reference to a css file in the response object
|
static void |
writeLinkUrl(Response response,
CharSequence url,
CharSequence media,
String markupId,
String rel)
Writes a reference to a css file in the response object
|
static void |
writeOpenTag(Response response,
String id) |
public static final String INLINE_OPEN_TAG_START
public static final String INLINE_OPEN_TAG
public static final String INLINE_CLOSE_TAG
public static void writeCss(Response response, CharSequence text, String id)
response
- The HTTP: responsetext
- The text to added in between the style tagsid
- Unique identifier of elementpublic static void writeOpenTag(Response response, String id)
response
- id
- public static void writeCloseTag(Response response)
response
- public static void writeLinkUrl(Response response, CharSequence url, CharSequence media, String markupId)
response
- the response to write tourl
- the url of the css referencemedia
- the CSS mediamarkupId
- the markupIdpublic static void writeLinkUrl(Response response, CharSequence url, CharSequence media, String markupId, String rel)
response
- the response to write tourl
- the url of the css referencemedia
- the CSS mediamarkupId
- the markupIdrel
- the rel attributeCopyright © 2006–2022 Apache Software Foundation. All rights reserved.