this.fields = fields;
}
@Override
public Widget buildWidget(ResourceAddress address, ResourceDefinition definition) {
ModelNodeFormBuilder builder = new ModelNodeFormBuilder()
.setConfigOnly()
.setResourceDescription(definition)
.setSecurityContext(securityContext);
if (fields != null && fields.length != 0) {
builder = builder.setFields(fields);
}
formAssets = builder.build();
formAssets.getForm().setToolsCallback(new FormCallback() {
@Override
public void onSave(Map changeSet) {
BatchResourceForm.this.onSave(formAssets.getForm().getChangedValues());
}