Package at.reppeitsolutions.formbuilder.components.html

Examples of at.reppeitsolutions.formbuilder.components.html.HtmlTextarea


*/
public class HtmlFormBuilderTextarea extends HtmlFormBuilderItem {

    @Override
    public void renderView() {
        HtmlTextarea textarea = new HtmlTextarea();
        if (getDataUuid() != null) {
            textarea.setName(getDataUuid());
        }
        if (isDisabled()) {
            textarea.setDisabled(true);
        }
        String tmpValue = "";
        if (getValue() != null) {
            tmpValue = getValue();
        } else if (properties.getValues() != null) {
            tmpValue = properties.getValues();
        }
        textarea.setValue(tmpValue);
        textarea.setRows(properties.getRows());
        textarea.setCols(properties.getCols());

        HtmlCustomOutputLabel output = new HtmlCustomOutputLabel(properties);
       
        addLabeledComponent(output, textarea);
    }
View Full Code Here


                                }
                                comp.getChildren().add(box);
                            }
                        } else {
                            if (item.getSpecialProperties().get(property) == FormBuilderItemBase.SPECIALPROPERTY.TEXTAREA) {
                                comp = new HtmlTextarea();
                                HtmlTextarea textarea = ((HtmlTextarea) comp);
                                textarea.setValue((String) val);
                                textarea.setRows(4);
                                textarea.setCols(40);
                            }
                        }
                    }
                    if (comp != null) {
                        comp.getPassThroughAttributes().put("itemid", itemid);
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.html.HtmlTextarea

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.