Search in sources :

Example 91 with TextField

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;
}
Also used : SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField) TextField(com.vaadin.ui.TextField) SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField) HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Example 92 with TextField

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;
}
Also used : SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField) TextField(com.vaadin.ui.TextField) SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField)

Example 93 with TextField

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;
}
Also used : TextField(com.vaadin.ui.TextField) SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField)

Example 94 with TextField

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;
}
Also used : TextField(com.vaadin.ui.TextField) SplitTextField(au.com.vaadinutils.crud.splitFields.SplitTextField)

Example 95 with TextField

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;
}
Also used : TextField(com.vaadin.ui.TextField)

Aggregations

TextField (com.vaadin.ui.TextField)185 VerticalLayout (com.vaadin.ui.VerticalLayout)51 CheckBox (com.vaadin.ui.CheckBox)45 Label (com.vaadin.ui.Label)41 Button (com.vaadin.ui.Button)40 ComboBox (com.vaadin.ui.ComboBox)39 HorizontalLayout (com.vaadin.ui.HorizontalLayout)39 FormLayoutWithFixedCaptionWidth (pl.edu.icm.unity.webui.common.FormLayoutWithFixedCaptionWidth)38 FormLayout (com.vaadin.ui.FormLayout)28 CollapsibleLayout (pl.edu.icm.unity.webui.common.CollapsibleLayout)28 I18nTextField (pl.edu.icm.unity.webui.common.i18n.I18nTextField)27 Binder (com.vaadin.data.Binder)23 StringToIntegerConverter (com.vaadin.data.converter.StringToIntegerConverter)23 Test (org.junit.Test)22 MessageSource (pl.edu.icm.unity.MessageSource)22 Component (com.vaadin.ui.Component)21 ValidationResult (com.vaadin.data.ValidationResult)19 List (java.util.List)18 IntegerRangeValidator (com.vaadin.data.validator.IntegerRangeValidator)17 Set (java.util.Set)17