/** * The Field has Changed. * If the target string matches this field, disable 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). * Disable field if criteria met. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { boolean bFlag = this.compareFieldToString(); if (m_bDisableIfMatch) bFlag = !bFlag; m_fldToDisable.setEnabled(bFlag); return DBConstants.NORMAL_RETURN; } /**
/** * The Field has Changed. * If the target string matches this field, disable 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). * Disable field if criteria met. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { boolean bFlag = this.compareFieldToString(); if (m_bDisableIfMatch) bFlag = !bFlag; m_fldToDisable.setEnabled(bFlag); return DBConstants.NORMAL_RETURN; } /**
/** * The Field has Changed. * If the target string matches this field, disable 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). * Disable field if criteria met. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { boolean bFlag = this.compareFieldToString(); if (m_bDisableIfMatch) bFlag = !bFlag; m_fldToDisable.setEnabled(bFlag); return DBConstants.NORMAL_RETURN; } /**
public boolean compareFieldToString() { boolean bMatch = super.compareFieldToString(); if (!bMatch) if (!this.getOwner().getRecord().getField(BookingDetail.MARKUP_FROM_LAST).isNull()) bMatch = true; return bMatch; } });