|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.skin.SkinCSSDocumentHandler
public class SkinCSSDocumentHandler
As the Skin css file is parsed, methods in this class are called to build up a SkinStyleSheetNode.
Constructor Summary | |
---|---|
SkinCSSDocumentHandler()
|
Method Summary | |
---|---|
void |
atRule(java.lang.String atRule)
Call when you have an atRule. |
void |
comment(java.lang.String text)
|
void |
endDocument()
Call this at the end of parsing the skin css file. |
void |
endSelector(java.util.List<java.lang.String> selectors)
Call this at the end of parsing one set of selectors/properties. |
java.util.List<org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetNode> |
getSkinStyleSheetNodes()
Return the List of SkinStyleSheetNodes that was created at the end of parsing the skin css file (endDocument). |
void |
property(java.lang.String name,
java.lang.String value)
Call this when a property name/value is found. |
void |
startDocument()
Call this at the start of parsing the skin css file. |
void |
startSelector()
Call this at the beginning of parsing one set of selectors/properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkinCSSDocumentHandler()
Method Detail |
---|
public java.util.List<org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetNode> getSkinStyleSheetNodes()
public void startDocument()
public void endDocument()
public void comment(java.lang.String text)
public void startSelector()
public void endSelector(java.util.List<java.lang.String> selectors)
selectors
- A List of Strings, each String is a selector.
e.g., given the selectors/properties:
.AFDefaultFont, af|breadCrumbs::font
{font-family:Arial,Helvetica; font-size:small}
The selectors in the List are
".AFDefaultFont" and "af|breadCrumbs::font"public void property(java.lang.String name, java.lang.String value)
name
- value
- public void atRule(java.lang.String atRule)
atRule
- The @rule string
e.g., @namespace af url(http:\\www.xxx.com);
e.g., @agent gecko { .foo {color:red}}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |