CheckBoxItem enabled = new CheckBoxItem("enabled", "Enabled?");
enabled.setValue(Boolean.TRUE);
form.setFields(name, jndiName, enabled);
final FormHelpPanel helpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = Baseadress.get();
address.add("subsystem", "datasources");
address.add("data-source", "*");
return address;
}
}, form
);
layout.add(helpPanel.asWidget());
layout.add(form.asWidget());
ClickHandler submitHandler = new ClickHandler() {
@Override