|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.gwt.CmsIconCssRuleBuilder
public class CmsIconCssRuleBuilder
This is a helper class for creating the text of the CSS rule for a single icon based on resource type and file suffix.
| Constructor Summary | |
|---|---|
CmsIconCssRuleBuilder()
|
|
| Method Summary | |
|---|---|
void |
addSelectorForSubType(String type,
String suffix,
boolean small)
Adds a selector for a resource type and a file suffix. |
void |
addSelectorForType(String type,
boolean small)
Adds a selector for a resource type. |
void |
setImageUri(String imageUri)
Sets the URI of the icon image file. |
void |
writeCss(StringBuffer buffer)
Writes the CSS to a string buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsIconCssRuleBuilder()
| Method Detail |
|---|
public void addSelectorForSubType(String type,
String suffix,
boolean small)
type - the resource type namesuffix - the file suffixsmall - true if the selector should be for the small icon
public void addSelectorForType(String type,
boolean small)
type - the name of the resource typesmall - true if the selector should be for the small iconpublic void setImageUri(String imageUri)
imageUri - the URI of the icon image filepublic void writeCss(StringBuffer buffer)
buffer - the string buffer to which the
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||