/** * 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. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). * Field changed, re-compute the value in this field. */ 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. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). * Field changed, re-compute the value in this field. */ 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. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). * Field changed, re-compute the value in this field. */ 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; } /**