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
|
| Modifier and Type | Method and Description |
|---|---|
static String |
key(Class<?> scope,
String facet)
Get a standardized key for a CSS class.
|
static void |
writeCloseTag(org.apache.wicket.request.Response response) |
static void |
writeCss(org.apache.wicket.request.Response response,
CharSequence text,
String id)
Write the simple text to the response object surrounded by a style tag.
|
static void |
writeLinkUrl(org.apache.wicket.request.Response response,
CharSequence url,
CharSequence media,
String markupId)
Writes a reference to a css file in the response object
|
static void |
writeLinkUrl(org.apache.wicket.request.Response response,
CharSequence url,
CharSequence media,
String markupId,
String rel)
Writes a reference to a css file in the response object
|
static void |
writeOpenTag(org.apache.wicket.request.Response response,
String id) |
public static final String INLINE_OPEN_TAG
public static final String INLINE_CLOSE_TAG
public static void writeCss(org.apache.wicket.request.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(org.apache.wicket.request.Response response,
String id)
response - id - public static void writeCloseTag(org.apache.wicket.request.Response response)
response - public static void writeLinkUrl(org.apache.wicket.request.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(org.apache.wicket.request.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–2018 Apache Software Foundation. All rights reserved.