DefaultComboBoxModel adapterModel = new DefaultComboBoxModel(DbAdapterInfo
.getStandardAdapters());
view.getAdapters().setModel(adapterModel);
view.getAdapters().setSelectedIndex(0);
BindingBuilder builder = new BindingBuilder(
getApplication().getBindingFactory(),
this);
bindings = new ObjectBinding[5];
bindings[0] = builder.bindToTextField(
view.getUserName(),
"connectionInfo.userName");
bindings[1] = builder.bindToTextField(
view.getPassword(),
"connectionInfo.password");
bindings[2] = builder.bindToTextField(
view.getDriver(),
"connectionInfo.jdbcDriver");
bindings[3] = builder.bindToTextField(view.getUrl(), "connectionInfo.url");
bindings[4] = builder.bindToComboSelection(
view.getAdapters(),
"connectionInfo.dbAdapter", "Automatic");
}