CheckBoxItem state = new CheckBoxItem("enabled", "Enabled?");
form.setFields(name, socketBinding, protocol, scheme, state);
form.bind(connectorTable);
final FormHelpPanel helpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = Baseadress.get();
address.add("subsystem", "web");
address.add("connector", "*");
return address;
}
}, form
);
layout.add(formTools.asWidget());
layout.add(helpPanel.asWidget());
layout.add(form.asWidget());
return layout;
}