Package at.reppeitsolutions.formbuilder.components

Examples of at.reppeitsolutions.formbuilder.components.FormDataResultFloat


    public static final String FAMILY = "at.rits.formbuilder";

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


            } else if(formDataResult instanceof FormDataStringResult) {
                FormDataResultString stringFormDatasResultComponent = new FormDataResultString();
                stringFormDatasResultComponent.setStringFormDataResult((FormDataStringResult)formDataResult);
                panelGrid.getChildren().add(stringFormDatasResultComponent);
            } else if(formDataResult instanceof FormDataFloatResult) {
                FormDataResultFloat floatFormDatasResultComponent = new FormDataResultFloat();
                floatFormDatasResultComponent.setFloatFormDataResult((FormDataFloatResult)formDataResult);
                panelGrid.getChildren().add(floatFormDatasResultComponent);
            }
        }
        component.getChildren().add(panelGrid);
    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.FormDataResultFloat

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.