CheckBoxItem enabledField = new CheckBoxItem("metricEnabled", "Metrics Enabled?");
form.setFields(deployment, persistenceUnit, enabledField);
final StaticHelpPanel helpPanel = new StaticHelpPanel(
Console.CONSTANTS.subsys_jpa_deployment_desc()
);
form.bind(table);
FormToolStrip<JPADeployment> formTools = new FormToolStrip<JPADeployment>(
form, new FormToolStrip.FormCallback<JPADeployment>() {
@Override
public void onSave(Map<String, Object> changeset) {
presenter.onSaveJPADeployment(form.getEditedEntity(), changeset);
}
@Override
public void onDelete(JPADeployment entity) {
// not provided
}
}
);
formTools.providesDeleteOp(false);
VerticalPanel formPanel = new VerticalPanel();
formPanel.add(formTools.asWidget());
formPanel.add(helpPanel.asWidget());
formPanel.add(form.asWidget());
// ---
MultipleToOneLayout layout = new MultipleToOneLayout()