Search in sources :

Example 1 with LegacyComboBox

use of org.vaadin.ui.LegacyComboBox in project VaadinUtils by rlsutton1.

the class FormHelper method bindLegacyComboBox.

public <L> LegacyComboBox bindLegacyComboBox(AbstractLayout form, ValidatingFieldGroup<E> fieldGroup, String fieldName, String fieldLabel, Collection<?> options) {
    LegacyComboBox field = new LegacySplitComboBox(fieldLabel, options);
    field.setNewItemsAllowed(false);
    field.setNullSelectionAllowed(false);
    field.setTextInputAllowed(true);
    field.setWidth(STANDARD_COMBO_WIDTH);
    field.setImmediate(true);
    form.addComponent(field);
    addValueChangeListeners(field);
    doBinding(group, fieldName, field);
    return field;
}
Also used : LegacyComboBox(org.vaadin.ui.LegacyComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)

Aggregations

LegacySplitComboBox (au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)1 LegacyComboBox (org.vaadin.ui.LegacyComboBox)1