Search in sources :

Example 1 with SplitCheckBox

use of au.com.vaadinutils.crud.splitFields.SplitCheckBox in project VaadinUtils by rlsutton1.

the class FormHelper method bindBooleanField.

public CheckBox bindBooleanField(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel, String fieldName) {
    CheckBox field = new SplitCheckBox(fieldLabel);
    field.setWidth("100%");
    field.setImmediate(true);
    addValueChangeListeners(field);
    doBinding(group, fieldName, field);
    form.addComponent(field);
    return field;
}
Also used : CheckBox(com.vaadin.ui.CheckBox) SplitCheckBox(au.com.vaadinutils.crud.splitFields.SplitCheckBox) SplitCheckBox(au.com.vaadinutils.crud.splitFields.SplitCheckBox)

Aggregations

SplitCheckBox (au.com.vaadinutils.crud.splitFields.SplitCheckBox)1 CheckBox (com.vaadin.ui.CheckBox)1