All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.evolver.ai.vaadin.component.form.TextAreaForm Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy