* Returns the text-field for the specified language
* @param language
* @return The textField for the specified language or nul if no matching field exists.
*/
public JbsLangEntryHelper getLangTextField(JbsLanguage language) {
JbsLangEntryHelper result = null;
if (this.getTextFields() != null) {
Iterator<JbsLangEntryHelper> it = this.getTextFields().iterator();
while ((it.hasNext()) && (result == null)) {
JbsLangEntryHelper textField = it.next();
if (textField.getLanguage().getLangCode().equals(language.getLangCode())) {
result = textField;
}
}
}
return result;