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;
}
Aggregations