public int fieldChanged ( boolean bDisplayOption , int iMoveMode ) { double srcValue = ( ( NumberField ) this . getOwner ( ) ) . getValue ( ) ; BaseField fldTarget = this . getFieldTarget ( ) ; if ( this . getOwner ( ) . isNull ( ) ) // If null, set the target to null return fldTarget . moveFieldToThis ( this . getOwner ( ) , bDisplayOption , iMoveMode ) ; // zero out the field boolean [ ] rgbListeners = null ; if ( m_bDisableTarget ) rgbListeners = fldTarget . setEnableListeners ( false ) ; int iErrorCode = fldTarget . setValue ( this . computeValue ( srcValue ) , bDisplayOption , iMoveMode ) ; if ( m_bDisableTarget ) fldTarget . setEnableListeners ( rgbListeners ) ; return iErrorCode ; }
The Field has Changed . Get the value of this listener s owner pass it to the computeValue method and set the returned value to the target field .