org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper
Class DefaultStyleBuilder

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper.DefaultStyleBuilder
All Implemented Interfaces:
StyleBuilder

public final class DefaultStyleBuilder
extends Object
implements StyleBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper.StyleBuilder
StyleBuilder.CSSKeys, StyleBuilder.StyleCarrier
 
Field Summary
static String INDENT
           
 
Constructor Summary
DefaultStyleBuilder()
           
 
Method Summary
 void append(StyleBuilder.CSSKeys key, String value)
           
 void append(StyleBuilder.CSSKeys key, String value, boolean replace)
          Appends the style to the list.
 void append(StyleBuilder.CSSKeys key, String value, String unit)
           
 void append(StyleBuilder.CSSKeys key, String value, String unit, boolean replace)
          Appends the style to the list.
 void appendRaw(StyleBuilder.CSSKeys key, String value)
           
 void clear()
           
 NumberFormat getPointConverter()
           
 boolean isEmpty()
           
 void print(Writer writer, boolean compact)
           
 String printCornerAsCSS(BorderCorner edge)
           
 String printEdgeAsCSS(BorderEdge edge)
           
 StyleBuilder.StyleCarrier[] toArray()
           
 String toString()
           
 String toString(boolean compact)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDENT

public static final String INDENT
See Also:
Constant Field Values
Constructor Detail

DefaultStyleBuilder

public DefaultStyleBuilder()
Method Detail

clear

public void clear()
Specified by:
clear in interface StyleBuilder

append

public void append(StyleBuilder.CSSKeys key,
                   String value)
Specified by:
append in interface StyleBuilder

appendRaw

public void appendRaw(StyleBuilder.CSSKeys key,
                      String value)
Specified by:
appendRaw in interface StyleBuilder

append

public void append(StyleBuilder.CSSKeys key,
                   String value,
                   String unit)
Specified by:
append in interface StyleBuilder

append

public void append(StyleBuilder.CSSKeys key,
                   String value,
                   boolean replace)
Appends the style to the list. If the replace value is false and the list already contains the key, it will not be replaced.

Specified by:
append in interface StyleBuilder

append

public void append(StyleBuilder.CSSKeys key,
                   String value,
                   String unit,
                   boolean replace)
Appends the style to the list. If the replace value if false and the list already contains the key, it will not be replaced.

Specified by:
append in interface StyleBuilder

toString

public String toString()
Specified by:
toString in interface StyleBuilder
Overrides:
toString in class Object

print

public void print(Writer writer,
                  boolean compact)
           throws IOException
Specified by:
print in interface StyleBuilder
Throws:
IOException

toString

public String toString(boolean compact)
Specified by:
toString in interface StyleBuilder

printEdgeAsCSS

public String printEdgeAsCSS(BorderEdge edge)
Specified by:
printEdgeAsCSS in interface StyleBuilder

printCornerAsCSS

public String printCornerAsCSS(BorderCorner edge)
Specified by:
printCornerAsCSS in interface StyleBuilder

getPointConverter

public NumberFormat getPointConverter()
Specified by:
getPointConverter in interface StyleBuilder

toArray

public StyleBuilder.StyleCarrier[] toArray()
Specified by:
toArray in interface StyleBuilder
Returns:
the style carriers as array.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface StyleBuilder