public final class DefaultStyleBuilder extends Object implements StyleBuilder
StyleBuilder.CSSKeys, StyleBuilder.StyleCarrier
Constructor and Description |
---|
DefaultStyleBuilder(StyleBuilderFactory factory) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String INDENT
public DefaultStyleBuilder(StyleBuilderFactory factory)
public void clear()
clear
in interface StyleBuilder
public void append(StyleBuilder.CSSKeys key, String value)
append
in interface StyleBuilder
public void appendRaw(StyleBuilder.CSSKeys key, String value)
appendRaw
in interface StyleBuilder
public void append(StyleBuilder.CSSKeys key, String value, String unit)
append
in interface StyleBuilder
public void append(StyleBuilder.CSSKeys key, String value, boolean replace)
false
and the list already contains the key, it
will not be replaced.append
in interface StyleBuilder
public void append(StyleBuilder.CSSKeys key, String value, String unit, boolean replace)
false
and the list already contains the key, it
will not be replaced.append
in interface StyleBuilder
public String toString()
toString
in interface StyleBuilder
toString
in class Object
public void print(Writer writer, boolean compact) throws IOException
print
in interface StyleBuilder
IOException
public String toString(boolean compact)
toString
in interface StyleBuilder
public String printEdgeAsCSS(BorderEdge edge)
printEdgeAsCSS
in interface StyleBuilder
public String printCornerAsCSS(BorderCorner edge)
printCornerAsCSS
in interface StyleBuilder
public NumberFormat getPointConverter()
getPointConverter
in interface StyleBuilder
public StyleBuilder.StyleCarrier[] toArray()
toArray
in interface StyleBuilder
public boolean isEmpty()
isEmpty
in interface StyleBuilder