Search in sources :

Example 1 with SplitComboBox

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;
}
Also used : SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox) ComboBox(com.vaadin.ui.ComboBox) LegacyComboBox(org.vaadin.ui.LegacyComboBox) SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)

Example 2 with SplitComboBox

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;
}
Also used : SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox) ComboBox(com.vaadin.ui.ComboBox) LegacyComboBox(org.vaadin.ui.LegacyComboBox) SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)

Example 3 with SplitComboBox

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;
}
Also used : SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox) ComboBox(com.vaadin.ui.ComboBox) LegacyComboBox(org.vaadin.ui.LegacyComboBox) SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)

Example 4 with SplitComboBox

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;
}
Also used : SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox) ComboBox(com.vaadin.ui.ComboBox) LegacyComboBox(org.vaadin.ui.LegacyComboBox) SplitComboBox(au.com.vaadinutils.crud.splitFields.SplitComboBox) LegacySplitComboBox(au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)

Aggregations

SplitComboBox (au.com.vaadinutils.crud.splitFields.SplitComboBox)4 LegacySplitComboBox (au.com.vaadinutils.crud.splitFields.legacy.LegacySplitComboBox)4 ComboBox (com.vaadin.ui.ComboBox)4 LegacyComboBox (org.vaadin.ui.LegacyComboBox)4