submit.getElement().setAttribute("style", "float:right");
submit.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// merge base
ServerGroupRecord newGroup = form.getUpdatedEntity();
ServerGroupRecord base = null;
for(ServerGroupRecord rec : existing)
{
if(rec.getGroupName().equals(basedOnSelection.getValue()))
{
base = rec;
break;
}
}
newGroup.setJvm(base.getJvm());
newGroup.setSocketBinding(base.getSocketBinding());
newGroup.setProfileName(base.getProfileName());
newGroup.setProperties(base.getProperties());
presenter.onNewGroup(newGroup);
}
});