use of au.com.vaadinutils.crud.splitFields.SplitComboBox in project VaadinUtils by rlsutton1.
the class FormHelper method bindComboBox.
public <L> ComboBox bindComboBox(AbstractLayout form, ValidatingFieldGroup<E> fieldGroup, String fieldName, String fieldLabel, Collection<?> options) {
ComboBox field = new SplitComboBox(fieldLabel, options);
field.setNewItemsAllowed(false);
field.setNullSelectionAllowed(false);
field.setTextInputAllowed(true);
field.setWidth(STANDARD_COMBO_WIDTH);
field.setPopupWidth("100%");
field.setImmediate(true);
form.addComponent(field);
addValueChangeListeners(field);
doBinding(group, fieldName, field);
return field;
}
use of au.com.vaadinutils.crud.splitFields.SplitComboBox in project VaadinUtils by rlsutton1.
the class FormHelper method bindComboBox.
public <L> ComboBox bindComboBox(AbstractLayout form, String fieldName, String fieldLabel, Container options) {
ComboBox field = new SplitComboBox(fieldLabel, options);
field.setNewItemsAllowed(false);
field.setNullSelectionAllowed(false);
field.setTextInputAllowed(true);
field.setWidth(STANDARD_COMBO_WIDTH);
field.setPopupWidth("100%");
field.setImmediate(true);
form.addComponent(field);
addValueChangeListeners(field);
doBinding(group, fieldName, field);
return field;
}
use of au.com.vaadinutils.crud.splitFields.SplitComboBox in project VaadinUtils by rlsutton1.
the class FormHelper method bindComboBox.
public <L> ComboBox bindComboBox(AbstractLayout form, String fieldName, String fieldLabel, Collection<?> options) {
ComboBox field = new SplitComboBox(fieldLabel, options);
field.setNewItemsAllowed(false);
field.setNullSelectionAllowed(false);
field.setTextInputAllowed(true);
field.setWidth(STANDARD_COMBO_WIDTH);
field.setPopupWidth("100%");
field.setImmediate(true);
form.addComponent(field);
addValueChangeListeners(field);
doBinding(group, fieldName, field);
return field;
}
use of au.com.vaadinutils.crud.splitFields.SplitComboBox in project VaadinUtils by rlsutton1.
the class FormHelper method bindComboBox.
public <L> ComboBox bindComboBox(AbstractLayout form, ValidatingFieldGroup<E> fieldGroup, String fieldName, String fieldLabel, Container options) {
ComboBox field = new SplitComboBox(fieldLabel, options);
field.setNewItemsAllowed(false);
field.setNullSelectionAllowed(false);
field.setTextInputAllowed(true);
field.setWidth(STANDARD_COMBO_WIDTH);
field.setPopupWidth("100%");
field.setImmediate(true);
form.addComponent(field);
addValueChangeListeners(field);
doBinding(group, fieldName, field);
return field;
}
Aggregations