/** * The Field has Changed. * Enable/disable the target listener if this field now matches the target string. * @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). */ public int fieldChanged(boolean bDisplayOption, int moveMode) { boolean flag = !(this.getOwner().getString().equals(m_strDisableOnMatch)); if (!m_bDisableIfMatch) flag = !flag; m_listenerToDisable.setEnabledListener(flag); return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * Enable/disable the target listener if this field now matches the target string. * @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). */ public int fieldChanged(boolean bDisplayOption, int moveMode) { boolean flag = !(this.getOwner().getString().equals(m_strDisableOnMatch)); if (!m_bDisableIfMatch) flag = !flag; m_listenerToDisable.setEnabledListener(flag); return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * Enable/disable the target listener if this field now matches the target string. * @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). */ public int fieldChanged(boolean bDisplayOption, int moveMode) { boolean flag = !(this.getOwner().getString().equals(m_strDisableOnMatch)); if (!m_bDisableIfMatch) flag = !flag; m_listenerToDisable.setEnabledListener(flag); return DBConstants.NORMAL_RETURN; } }