/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch, boolean bDisableIfMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, bDisableIfMatch); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); } /**
/** * 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; } }
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); } /**
/** * 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; } }
/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch, boolean bDisableIfMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, bDisableIfMatch); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); } /**
/** * 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; } }
/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, true); } /**
/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, true); } /**
/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, true); } /**
/** * Constructor. * @param listenerToDisable Listener to disable on string match. * @param strDisableOnMatch String to match to determine whether to disable the listener. * @param bDisableIfMatch If true disable if match, else disable if not matched. */ public DisableBehOnFieldHandler(BaseListener listenerToDisable, String strDisableOnMatch, boolean bDisableIfMatch) { this(); this.init(null, listenerToDisable, strDisableOnMatch, bDisableIfMatch); } /**