/** * 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) { if (m_fldTarget != null) if (m_fldTarget.getRecord() != this.getOwner().getRecord()) m_fldTarget.addListener(new FieldRemoveBOnCloseHandler(this)); // Not same file, if target file closes, remove this listener! if (this.getFieldTarget() != null) if (!(this.getFieldTarget().isVirtual()) && (!(this.getFieldTarget().getRecord() instanceof ScreenRecord))) if (this.respondsToMode(DBConstants.READ_MOVE) == true) if (this.respondsToMode(DBConstants.INIT_MOVE) == true) { // This is a performance issue if the field I'm updating is connected to a file this.setRespondsToMode(DBConstants.READ_MOVE, false); // Usually, you only want to recompute on screen change this.setRespondsToMode(DBConstants.INIT_MOVE, false); // Usually, you only want to recompute on screen change } } } /**
/** * 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) { if (m_fldTarget != null) if (m_fldTarget.getRecord() != this.getOwner().getRecord()) m_fldTarget.addListener(new FieldRemoveBOnCloseHandler(this)); // Not same file, if target file closes, remove this listener! if (this.getFieldTarget() != null) if (!(this.getFieldTarget().isVirtual()) && (!(this.getFieldTarget().getRecord() instanceof ScreenRecord))) if (this.respondsToMode(DBConstants.READ_MOVE) == true) if (this.respondsToMode(DBConstants.INIT_MOVE) == true) { // This is a performance issue if the field I'm updating is connected to a file this.setRespondsToMode(DBConstants.READ_MOVE, false); // Usually, you only want to recompute on screen change this.setRespondsToMode(DBConstants.INIT_MOVE, false); // Usually, you only want to recompute on screen change } } } /**
/** * 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) { if (m_fldTarget != null) if (m_fldTarget.getRecord() != this.getOwner().getRecord()) m_fldTarget.addListener(new FieldRemoveBOnCloseHandler(this)); // Not same file, if target file closes, remove this listener! if (this.getFieldTarget() != null) if (!(this.getFieldTarget().isVirtual()) && (!(this.getFieldTarget().getRecord() instanceof ScreenRecord))) if (this.respondsToMode(DBConstants.READ_MOVE) == true) if (this.respondsToMode(DBConstants.INIT_MOVE) == true) { // This is a performance issue if the field I'm updating is connected to a file this.setRespondsToMode(DBConstants.READ_MOVE, false); // Usually, you only want to recompute on screen change this.setRespondsToMode(DBConstants.INIT_MOVE, false); // Usually, you only want to recompute on screen change } } } /**