use of com.vaadin.flow.component.formlayout.FormLayout in project docs by vaadin.
the class CrudLocalization method createEditor.
private CrudEditor<Person> createEditor() {
TextField firstName = new TextField("First name");
TextField lastName = new TextField("Last name");
EmailField email = new EmailField("Email");
TextField profession = new TextField("Profession");
FormLayout form = new FormLayout(firstName, lastName, email, profession);
Binder<Person> binder = new Binder<>(Person.class);
binder.forField(firstName).asRequired().bind(Person::getFirstName, Person::setFirstName);
binder.forField(lastName).asRequired().bind(Person::getLastName, Person::setLastName);
binder.forField(email).asRequired().bind(Person::getEmail, Person::setEmail);
binder.forField(profession).asRequired().bind(Person::getProfession, Person::setProfession);
return new BinderCrudEditor<>(binder, form);
}
use of com.vaadin.flow.component.formlayout.FormLayout in project docs by vaadin.
the class CrudOpenEditor method createEditor.
private CrudEditor<Person> createEditor() {
TextField firstName = new TextField("First name");
TextField lastName = new TextField("Last name");
EmailField email = new EmailField("Email");
TextField profession = new TextField("Profession");
FormLayout form = new FormLayout(firstName, lastName, email, profession);
Binder<Person> binder = new Binder<>(Person.class);
binder.forField(firstName).asRequired().bind(Person::getFirstName, Person::setFirstName);
binder.forField(lastName).asRequired().bind(Person::getLastName, Person::setLastName);
binder.forField(email).asRequired().bind(Person::getEmail, Person::setEmail);
binder.forField(profession).asRequired().bind(Person::getProfession, Person::setProfession);
return new BinderCrudEditor<>(binder, form);
}
use of com.vaadin.flow.component.formlayout.FormLayout in project docs by vaadin.
the class CrudToolbar method createEditor.
private CrudEditor<Person> createEditor() {
TextField firstName = new TextField("First name");
TextField lastName = new TextField("Last name");
FormLayout form = new FormLayout(firstName, lastName);
Binder<Person> binder = new Binder<>(Person.class);
binder.forField(firstName).asRequired().bind(Person::getFirstName, Person::setFirstName);
binder.forField(lastName).asRequired().bind(Person::getLastName, Person::setLastName);
return new BinderCrudEditor<>(binder, form);
}
use of com.vaadin.flow.component.formlayout.FormLayout in project karnak by OsiriX-Foundation.
the class DicomWorkListView method buildWlQueryForm.
private void buildWlQueryForm() {
wlQueryForm = new FormLayout();
buildScheduledStationAetFld();
buildScheduledModalitySelector();
buildPatientIdfld();
buildAdmissionIdFld();
buildScheduledFromFld();
buildScheduledToFld();
buildPatientNameFld();
buildAccessionNumberFld();
wlQueryForm.add(scheduledStationAetFld, scheduledModalitySelector, patientIdfld, admissionIdFld, scheduledFromFld, scheduledToFld, patientNameFld, accessionNumberFld);
setFormResponsive(wlQueryForm);
}
use of com.vaadin.flow.component.formlayout.FormLayout in project karnak by OsiriX-Foundation.
the class DicomEchoView method buildFormLayout.
private void buildFormLayout() {
formLayout = new FormLayout();
buildCallingAetFld();
buildCalledAetFld();
buildCalledHostnameFld();
buildCalledPortFld();
formLayout.add(callingAetFld, calledAetFld, calledHostnameFld, calledPortFld);
setFormResponsive(formLayout);
}
Aggregations