|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.guix.tags.StyleHandler
public class StyleHandler
Handles the style tag.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
log |
| Constructor Summary | |
|---|---|
StyleHandler()
|
|
| Method Summary | |
|---|---|
StyleSheet |
autoDetectStyleFile(java.io.File styleFile)
Load the file with the name of the class and creates a StyleSheet with the content of the file. |
StyleSheet |
compileStyle(org.xmlpull.v1.XmlPullParser xpp,
java.io.File styleFile)
Load the file specified by the source attribute
or the code between the style tags
and creates a StyleSheet with this content. |
protected Rule |
processRule(SimpleNode ruleNode)
Analyses a CSS rule |
protected Selector |
processSelector(SimpleNode selector)
Analyses a selector node |
protected StyleSheet |
processStylesheet(java.lang.String stylesheetText)
Analyses the CSS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public StyleHandler()
| Method Detail |
|---|
public StyleSheet autoDetectStyleFile(java.io.File styleFile)
throws java.io.IOException
StyleSheet with the content of the file.
styleFile - the file containing the css code
StyleSheet containing the content of the file
java.io.FileNotFoundException - if the file with the same name as the class
does not exist
java.io.IOException - if an error occurs while reading the file
with the same name as the class
public StyleSheet compileStyle(org.xmlpull.v1.XmlPullParser xpp,
java.io.File styleFile)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
source attribute
or the code between the style tags
and creates a StyleSheet with this content.
xpp - the parser referencing the style tagstyleFile - the file containing the css code
StyleSheet containing the content of the file
java.io.IOException - if an error occurs while reading
the file specified by the source attribute
org.xmlpull.v1.XmlPullParserException - if an error occurs
while parsing the guix fileprotected Selector processSelector(SimpleNode selector)
selector - the selector node to analyse
protected Rule processRule(SimpleNode ruleNode)
ruleNode - the CSSParser node containing the rule to analyse
protected StyleSheet processStylesheet(java.lang.String stylesheetText)
throws java.io.IOException
stylesheetText - the content of the CSS file or the style tag
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||