Package org.onemind.commons.java.text

Examples of org.onemind.commons.java.text.TextGenerator


    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);
View Full Code Here

TOP

Related Classes of org.onemind.commons.java.text.TextGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.