/*
* Iterate through all fields establishing proper widgets for each
*/
for (CtMember member : fieldsAndMethods) {
DialogField dialogProperty = (DialogField) member.getAnnotation(DialogField.class);
if (dialogProperty != null) {
WidgetMakerParameters parameters = new WidgetMakerParameters(dialogProperty, member,
trueComponentClass, classLoader, classPool, widgetRegistry, null, true);
DialogElement builtFieldWidget = WidgetFactory.make(parameters, -1);
builtFieldWidget.setRanking(dialogProperty.ranking());
int tabIndex = dialogProperty.tab();
if (tabIndex < 1 || tabIndex > tabsList.size()) {
throw new InvalidComponentFieldException("Invalid tab index " + tabIndex + " for field "
+ dialogProperty.fieldName());
}
tabsList.get(tabIndex - 1).addElement(builtFieldWidget);
}