WidgetMakerParameters curFieldMember = new WidgetMakerParameters(
dialogField, curField, fieldClass,
parameters.getClassLoader(), parameters.getClassPool(), parameters.getWidgetRegistry(), null, true);
DialogElement builtFieldWidget = WidgetFactory.make(curFieldMember, -1);
if (builtFieldWidget instanceof AbstractWidget
&& StringUtils.isNotEmpty(dialogFieldSetAnnotation.namePrefix())) {
AbstractWidget widget = (AbstractWidget) builtFieldWidget;
String name = widget.getName();
String newName;
if (name.startsWith("./")) {
newName = name.substring(2);
} else {
newName = name;
}
newName = dialogFieldSetAnnotation.namePrefix() + newName;
if (name.startsWith("./")) {
newName = "./" + newName;
}
widget.setName(newName);
}
builtFieldWidget.setRanking(ranking);
elements.add(builtFieldWidget);
}
}
Collections.sort(elements, new DialogElementComparator());
WidgetCollectionParameters wcp = new WidgetCollectionParameters();