Search in sources :

Example 1 with TblExample

use of au.com.vaadinutils.crud.example.entities.TblExample in project VaadinUtils by rlsutton1.

the class ExampleLayout method buildEditor.

public AbstractLayout buildEditor(ValidatingFieldGroup<TblExample> validatingFieldGroup) {
    VerticalLayout main = new VerticalLayout();
    MultiColumnFormLayout<TblExample> layout = new MultiColumnFormLayout<TblExample>(1, validatingFieldGroup);
    layout.setColumnFieldWidth(0, 250);
    TopVerticalLayout wrapper = new TopVerticalLayout();
    wrapper.addComponent(layout);
    main.addComponent(wrapper);
    layout.bindTextField("Name", "name");
    layout.bindTextField("Host", "host");
    layout.bindTextField("Schema", "schema");
    layout.bindTextField("Username", "username");
    layout.bindPasswordField("Password", "password");
    return main;
}
Also used : TblExample(au.com.vaadinutils.crud.example.entities.TblExample) TopVerticalLayout(au.com.vaadinutils.layout.TopVerticalLayout) MultiColumnFormLayout(au.com.vaadinutils.crud.MultiColumnFormLayout) VerticalLayout(com.vaadin.ui.VerticalLayout) TopVerticalLayout(au.com.vaadinutils.layout.TopVerticalLayout)

Aggregations

MultiColumnFormLayout (au.com.vaadinutils.crud.MultiColumnFormLayout)1 TblExample (au.com.vaadinutils.crud.example.entities.TblExample)1 TopVerticalLayout (au.com.vaadinutils.layout.TopVerticalLayout)1 VerticalLayout (com.vaadin.ui.VerticalLayout)1