fi.evolver.ai.vaadin.component.form.TextAreaForm Maven / Gradle / Ivy
package fi.evolver.ai.vaadin.component.form;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.textfield.TextArea;
import fi.evolver.ai.vaadin.entity.HasValueGetterSetter;
public class TextAreaForm extends Div implements HasValueGetterSetter {
private final TextArea templateInput = new TextArea();
public TextAreaForm(String label) {
this();
templateInput.setLabel(label);
}
public TextAreaForm() {
setWidthFull();
templateInput.setWidthFull();
add(templateInput);
}
@Override
public String getValue() {
return templateInput.getValue();
}
@Override
public void setValue(String value) {
templateInput.setValue(value);
}
}