private boolean readOnly;
public FXForm build() {
FXForm res;
DefaultElementProvider elementProvider;
if (includeFilters != null) {
elementProvider = new DefaultElementProvider(includeFilters);
} else {
elementProvider = new DefaultElementProvider();
}
if (fieldFilters != null) {
for (FieldFilter fieldFilter : fieldFilters) {
elementProvider.getFilters().add(fieldFilter);
}
} else {
elementProvider.getFilters().addAll(handleDefaultFieldFilters());
}
if (readOnly == true) {
res = new ReadOnlyFXForm(elementProvider);
} else {
res = new FXForm();
res.setElementProvider(elementProvider);
}
if (skin == null) {
handleDefaultSkin(res);
} else {
res.setSkin(skin);
}
if (resourceBundle == null) {
} else {
res.setResourceBundle(resourceBundle);
}
if (excludeFilters == null) {
} else {
elementProvider.getFilters().add(new ExcludeFieldFilter(excludeFilters));
}
if (reorderFilter == null) {
} else {
res.addFilters(new ReorderFilter(reorderFilter));