Package at.reppeitsolutions.formbuilder.components.helper

Examples of at.reppeitsolutions.formbuilder.components.helper.FormDataFloatResult


    @Override
    public void encodeBegin(FacesContext ctx, UIComponent component) throws IOException {
        ResponseWriter writer = ctx.getResponseWriter();
        FormDataResultFloat floatFormDatasResultComponent = (FormDataResultFloat) component;
        FormDataFloatResult floatFormDataResult = floatFormDatasResultComponent.getFloatFormDataResult();
        if (floatFormDataResult != null) {
            writer.write("<p>");
            writer.write("<ul>");
            if(floatFormDataResult.getMinValue() != null && floatFormDataResult.getMaxValue()!= null && floatFormDataResult.getAverage()!= null) {
                writer.write("<li>Min value: " + floatFormDataResult.getMinValue() + "</li>");
                writer.write("<li>Max value: " + floatFormDataResult.getMaxValue() + "</li>");
                writer.write("<li>Average value: " + floatFormDataResult.getAverage() + "</li>");
            }
            writer.write("</ul>");
            writer.write("</p>");
        }
    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.helper.FormDataFloatResult

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.