Package com.astamuse.asta4d.render

Examples of com.astamuse.asta4d.render.TextSetter


        } else if (action instanceof Element) {
            transformer = new ElementTransformer((Element) action);
        } else if (action instanceof Component) {
            transformer = new ElementTransformer(((Component) action).toElement());
        } else {
            transformer = new ElementSetterTransformer(new TextSetter(action));
        }
        return transformer;
    }
View Full Code Here


    private final static Logger logger = LoggerFactory.getLogger(TransformerFactory.class);

    public final static Transformer<?> generateTransformer(Object action) {
        Transformer<?> transformer;
        if (action instanceof String) {
            transformer = new ElementSetterTransformer(new TextSetter(action.toString()));
        } else if (action instanceof ElementSetter) {
            transformer = new ElementSetterTransformer((ElementSetter) action);
        } else if (action instanceof Renderer) {
            transformer = new RendererTransformer((Renderer) action);
        } else if (action instanceof Future) {
            transformer = new FutureTransformer((Future<?>) action);
        } else if (action instanceof Element) {
            transformer = new ElementTransformer((Element) action);
        } else {
            String msg = "Unsupported type found in transformer generation:" + action.getClass().getName();
            Asta4DWarningException awe = new Asta4DWarningException(msg);
            logger.warn(msg, awe);
            transformer = new ElementSetterTransformer(new TextSetter(action.toString()));
        }
        return transformer;
    }
View Full Code Here

        } else if (action instanceof Future) {
            transformer = new FutureTransformer((Future<?>) action);
        } else if (action instanceof Element) {
            transformer = new ElementTransformer((Element) action);
        } else {
            transformer = new ElementSetterTransformer(new TextSetter(action));
        }
        return transformer;
    }
View Full Code Here

        } else if (action instanceof Future) {
            transformer = new FutureTransformer((Future<?>) action);
        } else if (action instanceof Element) {
            transformer = new ElementTransformer((Element) action);
        } else {
            transformer = new ElementSetterTransformer(new TextSetter(action));
        }
        return transformer;
    }
View Full Code Here

        } else if (action instanceof Component) {
            transformer = new ElementTransformer(((Component) action).toElement());
        } else if (action instanceof Renderable) {
            transformer = new RenderableTransformer((Renderable) action);
        } else {
            transformer = new ElementSetterTransformer(new TextSetter(action));
        }
        return transformer;
    }
View Full Code Here

TOP

Related Classes of com.astamuse.asta4d.render.TextSetter

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.