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);
}
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;
}