Search in sources :

Example 1 with TextArea

use of com.extjs.gxt.ui.client.widget.form.TextArea in project activityinfo by bedatadriven.

the class MailingListDialog method createTextField.

private void createTextField() {
    emailsTextField = new TextArea();
    emailsTextField.setHeight("175px");
    emailsTextField.setWidth("250px");
    emailsTextField.selectAll();
    add(emailsTextField);
}
Also used : TextArea(com.extjs.gxt.ui.client.widget.form.TextArea)

Example 2 with TextArea

use of com.extjs.gxt.ui.client.widget.form.TextArea in project activityinfo by bedatadriven.

the class IndicatorSection method createField.

private TextField createField(IndicatorDTO indicator) {
    TextField field;
    if (indicator.getType() == FieldTypeClass.NARRATIVE) {
        field = new TextArea();
    } else if (indicator.getType() == FieldTypeClass.QUANTITY) {
        field = createQuantityField();
    } else {
        field = new TextField();
    }
    field.setName(indicator.getPropertyName());
    field.setAllowBlank(!indicator.isMandatory());
    field.setToolTip(toolTip(indicator));
    indicatorFields.add(field);
    return field;
}
Also used : TextArea(com.extjs.gxt.ui.client.widget.form.TextArea) TextField(com.extjs.gxt.ui.client.widget.form.TextField)

Aggregations

TextArea (com.extjs.gxt.ui.client.widget.form.TextArea)2 TextField (com.extjs.gxt.ui.client.widget.form.TextField)1