|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.html.CSSManagerBase
public abstract class CSSManagerBase
This class is used for managing cascading style sheets. It keeps track of all declaration blocks and selectors used.
Constructor Summary | |
---|---|
CSSManagerBase()
|
Method Summary | |
---|---|
void |
addDefaultDeclaration(EHTMLElement element,
CSSDeclarationBlock block)
Adds a single selector and its block to this manager. |
void |
addDefaultDeclaration(EHTMLElement element,
ECSSPseudoClass pseudoClass,
CSSDeclarationBlock block)
Adds a single selector and its block to this manager. |
protected java.lang.String |
generateCSSClassName()
Generates a suitable name for a CSS class. |
java.lang.String |
getCSSClassName(CSSDeclarationBlock block)
Returns the name of the CSS class used for this block. |
boolean |
hasDefaultDeclaration(EHTMLElement element)
Returns whether there is a default declaration for the given element. |
boolean |
hasDefaultDeclaration(EHTMLElement element,
ECSSPseudoClass pseudoClass)
Returns whether there is a default declaration for the given element. |
protected void |
writeOut(java.io.PrintStream ps)
Write all selectors with their blocks to the given stream. |
protected void |
writeOutDeclarations(java.io.PrintStream ps)
Write out declarations. |
protected void |
writeOutDefaultDeclarations(java.io.PrintStream ps)
Write out default declarations for element (i.e. without specific class). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSSManagerBase()
Method Detail |
---|
public boolean hasDefaultDeclaration(EHTMLElement element)
public boolean hasDefaultDeclaration(EHTMLElement element, ECSSPseudoClass pseudoClass)
public final void addDefaultDeclaration(EHTMLElement element, CSSDeclarationBlock block)
public void addDefaultDeclaration(EHTMLElement element, ECSSPseudoClass pseudoClass, CSSDeclarationBlock block)
public java.lang.String getCSSClassName(CSSDeclarationBlock block)
protected java.lang.String generateCSSClassName()
protected void writeOut(java.io.PrintStream ps)
writeOutDefaultDeclarations(PrintStream)
and
writeOutDeclarations(PrintStream)
.
protected void writeOutDefaultDeclarations(java.io.PrintStream ps)
protected void writeOutDeclarations(java.io.PrintStream ps)
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |