Class CssUtils
java.lang.Object
org.apache.wicket.core.util.string.CssUtils
Utility methods for CSS.
- Author:
- eelcohillenius
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
CSS inline close tagstatic final String
CSS inline open tagstatic final String
start of CSS inline open tag -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get a standardized key for a CSS class.static void
writeCloseTag
(Response response) static void
writeInlineStyle
(Response response, CharSequence text, AttributeMap attributes) Write the simple text to the response object surrounded by a style tag.static void
writeLink
(Response response, AttributeMap attributes) Writes a reference to a css file in the response objectstatic void
writeOpenTag
(Response response, String id) Write open style tag for the inline CSSstatic void
writeOpenTag
(Response response, AttributeMap attributes) Write open style tag for the inline CSS
-
Field Details
-
INLINE_OPEN_TAG_START
start of CSS inline open tag- See Also:
-
INLINE_OPEN_TAG
CSS inline open tag- See Also:
-
INLINE_CLOSE_TAG
CSS inline close tag- See Also:
-
ATTR_ID
- See Also:
-
ATTR_TYPE
- See Also:
-
ATTR_LINK_HREF
- See Also:
-
ATTR_LINK_MEDIA
- See Also:
-
ATTR_LINK_REL
- See Also:
-
ATTR_CSP_NONCE
- See Also:
-
ATTR_CROSS_ORIGIN
- See Also:
-
ATTR_INTEGRITY
- See Also:
-
-
Method Details
-
writeInlineStyle
Write the simple text to the response object surrounded by a style tag. In most cases the text simply an inline CSS.- Parameters:
response
- The HTTP: responsetext
- The text to added in between the style tagsattributes
- Tag attributes map- See Also:
-
writeOpenTag
Write open style tag for the inline CSS- Parameters:
response
-id
-
-
writeOpenTag
Write open style tag for the inline CSS- Parameters:
response
- the response to write toattributes
- Tag attributes map
-
writeCloseTag
- Parameters:
response
-
-
writeLink
Writes a reference to a css file in the response object- Parameters:
response
- the response to write toattributes
- Attributes map- See Also:
-
key
Get a standardized key for a CSS class.- Parameters:
scope
- scope of CSS classfacet
- facet of CSS class- Returns:
- CSS key
-