use of com.vaadin.ui.TextField in project VaadinUtils by rlsutton1.
the class FormHelper method bindTextFieldWithButton.
public TextField bindTextFieldWithButton(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel, String fieldName, Button button) {
HorizontalLayout layout = new HorizontalLayout();
layout.setSizeFull();
TextField field = new SplitTextField(fieldLabel);
field.setWidth("100%");
field.setImmediate(true);
field.setNullRepresentation("");
field.setNullSettingAllowed(false);
field.setId(fieldLabel.replace(" ", ""));
addValueChangeListeners(field);
doBinding(group, fieldName, field);
layout.addComponent(field);
layout.addComponent(button);
layout.setExpandRatio(field, 2);
form.addComponent(layout);
return field;
}
use of com.vaadin.ui.TextField in project VaadinUtils by rlsutton1.
the class FormHelper method bindTextField.
public TextField bindTextField(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel, String fieldName) {
TextField field = new SplitTextField(fieldLabel);
field.setWidth("100%");
field.setImmediate(true);
field.setNullRepresentation("");
field.setNullSettingAllowed(false);
field.setId(fieldLabel.replace(" ", ""));
addValueChangeListeners(field);
doBinding(group, fieldName, field);
form.addComponent(field);
return field;
}
use of com.vaadin.ui.TextField in project VaadinUtils by rlsutton1.
the class FormHelper method bindTextField.
public TextField bindTextField(String fieldLabel, String fieldName) {
TextField field = bindTextField(form, group, fieldLabel, fieldName);
this.fieldList.add(field);
return field;
}
use of com.vaadin.ui.TextField in project VaadinUtils by rlsutton1.
the class FormHelper method bindTextFieldWithButton.
public <M> TextField bindTextFieldWithButton(String fieldLabel, SingularAttribute<E, M> member, Button button) {
TextField field = bindTextFieldWithButton(form, group, fieldLabel, member.getName(), button);
this.fieldList.add(field);
return field;
}
use of com.vaadin.ui.TextField in project VaadinUtils by rlsutton1.
the class MultiColumnFormLayout method bindTextField.
public <M> TextField bindTextField(String fieldLabel, SingularAttribute<E, M> member) {
TextField field = formHelper.bindTextField(this, fieldGroup, fieldLabel, member);
this.fieldList.add(field);
return field;
}
Aggregations