List<EditConfigActionConfig> actionConfigs = new ArrayList<EditConfigActionConfig>();
int counter = 0;
for (ActionConfig actionConfig : componentAnnotation.actionConfigs()) {
EditConfigActionConfigParameters params = new EditConfigActionConfigParameters();
if (!StringUtils.isEmpty(actionConfig.handler())) {
params.setHandler(actionConfig.handler());
}
if (!StringUtils.isEmpty(actionConfig.text())) {
params.setText(actionConfig.text());
}
if (!StringUtils.isEmpty(actionConfig.xtype())) {
params.setXtype(actionConfig.xtype());
}
if (actionConfig.additionalProperties().length > 0) {
Map<String, String> additionalProperties = new HashMap<String, String>();
for (ActionConfigProperty acp : actionConfig.additionalProperties()) {
additionalProperties.put(acp.name(), acp.value());
}
params.setAdditionalProperties(additionalProperties);
}
params.setFieldName(ACTION_CONFIG_FIELD_NAME + counter);
actionConfigs.add(new EditConfigActionConfig(params));
counter++;
}
EditConfigActionConfigsParameters parameters = new EditConfigActionConfigsParameters();