if (characterCount > 0) { characterCount = 0; int fieldName = fieldNames[currentField]; setTextField(fieldName, Integer.parseInt(text.getSelectionText()), true); }
commitCurrentField();
void onFocusOut(Event event) {	if (characterCount > 0) {		characterCount = 0;		int fieldName = fieldNames[currentField];		setTextField(fieldName, Integer.parseInt(text.getSelectionText()), true);	}}