private OnFocusChangeListener createFocusChangeListener ( ) { return new OnFocusChangeListener ( ) { @ Override public final void onFocusChange ( final View view , final boolean hasFocus ) { if ( ! hasFocus && isValidatedOnFocusLost ( ) ) { validate ( ) ; } } } ; }
Creates and returns a listener which allows to validate the value of the view when the view loses its focus .