}
}
);
archiveTools.providesDeleteOp(false);
final FormHelpPanel archiveHelpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = Baseadress.get();
address.add("subsystem", "jca");
address.add("archive-validation", "archive-validation");
return address;
}
}, archiveForm
);
VerticalPanel archivePanel = new VerticalPanel();
archivePanel.add(archiveTools.asWidget());
archivePanel.add(archiveHelpPanel.asWidget());
archivePanel.add(archiveForm.asWidget());
// ----
validationForm = new Form<JcaBeanValidation>(JcaBeanValidation.class);
validationForm.setNumColumns(2);
validationForm.setEnabled(false);
CheckBoxItem validationEnabled = new CheckBoxItem("enabled", "Is Enabled?");
validationForm.setFields(validationEnabled);
FormToolStrip<JcaBeanValidation> validationTools = new FormToolStrip<JcaBeanValidation>(
validationForm,
new FormToolStrip.FormCallback<JcaBeanValidation>() {
@Override
public void onSave(Map<String, Object> changeset) {
presenter.onSaveBeanSettings(changeset);
}
@Override
public void onDelete(JcaBeanValidation entity) {
}
}
);
validationTools.providesDeleteOp(false);
final FormHelpPanel validationHelpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = Baseadress.get();
address.add("subsystem", "jca");
address.add("bean-validation", "bean-validation");
return address;
}
}, validationForm
);
VerticalPanel validationPanel = new VerticalPanel();
validationPanel.add(validationTools.asWidget());
validationPanel.add(validationHelpPanel.asWidget());
validationPanel.add(validationForm.asWidget());
// ----
// ----
connectionManagerForm = new Form<JcaConnectionManager>(JcaConnectionManager.class);
connectionManagerForm.setNumColumns(2);
connectionManagerForm.setEnabled(false);
CheckBoxItem errorEnabled = new CheckBoxItem("error", "Error Log Enabled?");
CheckBoxItem debugEnabled = new CheckBoxItem("debug", "Debug Log Enabled?");
connectionManagerForm.setFields(errorEnabled, debugEnabled);
FormToolStrip<JcaConnectionManager> ccmTools = new FormToolStrip<JcaConnectionManager>(
connectionManagerForm,
new FormToolStrip.FormCallback<JcaConnectionManager>() {
@Override
public void onSave(Map<String, Object> changeset) {
presenter.onSaveCCMSettings(changeset);
}
@Override
public void onDelete(JcaConnectionManager entity) {
}
}
);
ccmTools.providesDeleteOp(false);
final FormHelpPanel helpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = Baseadress.get();
address.add("subsystem", "jca");
address.add("cached-connection-manager", "cached-connection-manager");
return address;
}
}, connectionManagerForm
);
VerticalPanel ccmPanel = new VerticalPanel();
ccmPanel.add(ccmTools.asWidget());
ccmPanel.add(helpPanel.asWidget());
ccmPanel.add(connectionManagerForm.asWidget());
Widget panel = new OneToOneLayout()
.setPlain(true)