net.sac.htmlwriter
Class StyleSet

java.lang.Object
  extended by net.sac.htmlwriter.StyleSet

public class StyleSet
extends java.lang.Object


Nested Class Summary
static class StyleSet.Type
           
 
Constructor Summary
StyleSet(java.lang.String name)
           
StyleSet(StyleSet.Type type, java.lang.String name)
           
 
Method Summary
 void addSubStyleSet(StyleSet styleSet)
           
 java.lang.String getAttribute(java.lang.String key)
           
 java.lang.String getName()
           
 StyleSet.Type getType()
           
 boolean isClassType()
           
 boolean isIdType()
           
 boolean isInlineType()
           
 void setAttribute(java.lang.String key, java.lang.String value)
           
 void setType(StyleSet.Type type)
           
 java.lang.String toHtml(boolean formatted, int depth, java.lang.String formattingSpacer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSet

public StyleSet(java.lang.String name)

StyleSet

public StyleSet(StyleSet.Type type,
                java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)

getAttribute

public java.lang.String getAttribute(java.lang.String key)

addSubStyleSet

public void addSubStyleSet(StyleSet styleSet)

getType

public StyleSet.Type getType()

setType

public void setType(StyleSet.Type type)

isIdType

public boolean isIdType()

isClassType

public boolean isClassType()

isInlineType

public boolean isInlineType()

toHtml

public java.lang.String toHtml(boolean formatted,
                               int depth,
                               java.lang.String formattingSpacer)