public class CmsIconCssRuleBuilder extends java.lang.Object
Constructor and Description |
---|
CmsIconCssRuleBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addSelectorForSubType(java.lang.String type,
java.lang.String suffix,
boolean small)
Adds a selector for a resource type and a file suffix.
|
void |
addSelectorForType(java.lang.String type,
boolean small)
Adds a selector for a resource type.
|
void |
setImageUri(java.lang.String imageUri)
Sets the URI of the icon image file.
|
void |
writeCss(java.lang.StringBuffer buffer)
Writes the CSS to a string buffer.
|
public CmsIconCssRuleBuilder()
public void addSelectorForSubType(java.lang.String type, java.lang.String suffix, boolean small)
type
- the resource type namesuffix
- the file suffixsmall
- true if the selector should be for the small iconpublic void addSelectorForType(java.lang.String type, boolean small)
type
- the name of the resource typesmall
- true if the selector should be for the small iconpublic void setImageUri(java.lang.String imageUri)
imageUri
- the URI of the icon image filepublic void writeCss(java.lang.StringBuffer buffer)
buffer
- the string buffer to which the