private SimpleTextGenerator _generator = new SimpleTextGenerator(",", ":");
public ComponentCssGenerator()
{
addGenerator("background", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateBackground(str, obj, sb);
}
});
addGenerator("border", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateBorder(str, obj, sb);
}
});
addGenerator("color", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateBorder(str, obj, sb);
}
});
addGenerator("font", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateFont(str, obj, sb);
}
});
addGenerator("height", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateHeight(str, obj, sb);
}
});
addGenerator("width", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateWidth(str, obj, sb);
}
});
addGenerator("x", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateLeft(str, obj, sb);
}
});
addGenerator("y", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateTop(str, obj, sb);
}
});
addGenerator("text-align", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateTextAlignment(str, obj, sb);
}
});
addGenerator("scrollbar", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateScrollbar(str, obj, sb);
}
});
addGenerator("textarea-scroll", new TextGenerator()
{
public void generateText(String str, Object obj, StringBuffer sb)
{
generateTextAreaScroll(str, obj, sb);