BF [ 1709292 ] Find dialog: custom text fields should respond to enter

http://sourceforge.net/tracker/index.php?func=detail&aid=1709292&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-04-28 15:18:18 +00:00
parent 210846ddf1
commit a0b1393114
1 changed files with 9 additions and 0 deletions

View File

@ -393,6 +393,10 @@ public final class Find extends CDialog
editor.setMandatory(false);
editor.setReadWrite(true);
}
// Add action listener to custom text fields - teo_sarca [ 1709292 ]
if (editor instanceof CTextField) {
((CTextField)editor).addActionListener(this);
}
CLabel label = VEditorFactory.getLabel(mField);
//
if (displayLength > 0) // set it back
@ -486,6 +490,11 @@ public final class Find extends CDialog
}
m_pstmt = null;
// Remove action listener from custom fields - teo_sarca [ 1709292 ]
for (VEditor editor : m_sEditors) {
if (editor instanceof CTextField)
((CTextField)editor).removeActionListener(this);
}
// TargetFields
if (m_targetFields != null)
m_targetFields.clear();