Package at.reppeitsolutions.formbuilder.components

Examples of at.reppeitsolutions.formbuilder.components.FormDataResultString


    public static final String FAMILY = "at.tugraz.simplesurveyrt";

    @Override
    public void encodeBegin(FacesContext ctx, UIComponent component) throws IOException {
        ResponseWriter writer = ctx.getResponseWriter();
        FormDataResultString stringFormDatasResultComponent = (FormDataResultString) component;
        FormDataStringResult stringFormDataResult = stringFormDatasResultComponent.getStringFormDataResult();
        if (stringFormDataResult != null && stringFormDataResult.getStringFormDataResults() != null && !stringFormDataResult.getStringFormDataResults().isEmpty()) {
            writer.write("<p>");
            writer.write("<ul>");
            for (String value : stringFormDataResult.getStringFormDataResults()) {
                writer.write("<li>" + value + "</li>");
View Full Code Here


            if(formDataResult instanceof FormDataPieChartResult) {
                FormDataResultPieChart pieChartComponent = new FormDataResultPieChart();
                pieChartComponent.setPieChart((FormDataPieChartResult)formDataResult);
                panelGrid.getChildren().add(pieChartComponent);
            } 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);
View Full Code Here

TOP

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

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.