|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.preprocess.css.Converter
de.enough.polish.preprocess.css.BackgroundConverter
public abstract class BackgroundConverter
The base class for all backgrounds.
The background creator is responsible for creating backgrounds for styles.
Copyright Enough Software 2004 - 2011
history
09-Mar-2004 - rob creation
| Field Summary | |
|---|---|
protected static String |
BACKGROUNDS_PACKAGE
|
protected String |
borderColor
|
protected String |
borderColorConstructor
|
protected String |
borderWidth
|
protected String |
color
|
protected String |
colorConstructor
|
protected boolean |
hasBorder
|
protected String |
styleName
|
| Fields inherited from class de.enough.polish.preprocess.css.Converter |
|---|
ANCHORS, colorConverter, STANDALONE_MODIFIER, STANDALONE_MODIFIER_NON_FINAL |
| Constructor Summary | |
|---|---|
BackgroundConverter()
Creates a new empty background |
|
| Method Summary | |
|---|---|
void |
addBackground(ArrayList codeList,
AttributesGroup background,
String backgroundName,
Style style,
StyleSheet styleSheet,
boolean isStandalone)
Adds the J2ME code for the given background. |
protected abstract String |
createNewStatement(AttributesGroup background,
Style style,
StyleSheet styleSheet)
Creates the statement for a new background based on the given properties. |
String |
parseAnchor(String attributeName,
String anchorValue)
Parses the given anchor value. |
boolean |
parseBoolean(String name,
String value)
Parses the given boolean value. |
float |
parseFloat(String name,
String value)
Parses the given float. |
int |
parseInt(String name,
String value)
Parses the given integer. |
String |
parseStroke(String name,
String value)
Parse the given stroke setting |
| Methods inherited from class de.enough.polish.preprocess.css.Converter |
|---|
getUrl, isAlphaColor, parseAnchor, parseBoolean, parseColor, parseFloat, parseInt, parseInt, parseStroke, print, setColorConverter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String BACKGROUNDS_PACKAGE
protected String color
protected String colorConstructor
protected String borderWidth
protected String borderColor
protected String borderColorConstructor
protected boolean hasBorder
protected String styleName
| Constructor Detail |
|---|
public BackgroundConverter()
| Method Detail |
|---|
public void addBackground(ArrayList codeList,
AttributesGroup background,
String backgroundName,
Style style,
StyleSheet styleSheet,
boolean isStandalone)
throws BuildException
codeList - the list at which the generated could should be appended tobackground - the map containing all background settingsbackgroundName - the name of this backgroundstyle - the parent style if anystyleSheet - the style-sheet into which the style is embeddedisStandalone - true when a new public background-field should be created,
otherwise the background will be embedded in a style instantiation.
BuildException - when there are invalid CSS declarations in the given background
protected abstract String createNewStatement(AttributesGroup background,
Style style,
StyleSheet styleSheet)
throws BuildException
background - the map containing all background settingsstyle - the parent stylestyleSheet - the style-sheet into which the style is embedded
BuildException - when there are invalid CSS declarations in the given background
public int parseInt(String name,
String value)
name - the name of the fieldvalue - the int value as a String
BuildException - when the value could not be parsed.
public String parseStroke(String name,
String value)
name - the name of the fieldvalue - the float value as a String.
BuildException - when the value could not be parsed.
public boolean parseBoolean(String name,
String value)
name - the name of the fieldvalue - the boolean value as a String
BuildException - when the value could not be parsed.
public float parseFloat(String name,
String value)
name - the name of the fieldvalue - the float value as a String
BuildException - when the value could not be parsed.
public String parseAnchor(String attributeName,
String anchorValue)
attributeName - the name of the attributeanchorValue - the actual value, e.g. "top | left"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||