/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (this.getOwner() != null) if (m_fldTarget == null) if (m_fsTarget != -1) m_fldTarget = this.getOwner().getField(m_fsTarget); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (this.getOwner() != null) if (m_fldTarget == null) if (m_fsTarget != null) m_fldTarget = this.getOwner().getField(m_fsTarget); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (this.getOwner() != null) if (m_fldTarget == null) if (m_fsTarget != -1) m_fldTarget = this.getOwner().getField(m_fsTarget); } /**
/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
/** * Set the field or file that owns this listener. * Besides inherited, this method closes the owner record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if ((m_strFieldNameToCheck != null) && (m_strFieldNameToCheck.length() > 0)) if ((m_fldToCheck == null) || (m_fldToCheck.getFieldName() == null) || (m_fldToCheck.getFieldName().length() == 0)) m_fldToCheck = this.getOwner().getField(m_strFieldNameToCheck); // If you have the fieldname, but not the field, get the field. if (m_fldToCompare != null) if (m_fldToCompare.getRecord() != this.getOwner()) m_fldToCompare.addListener(new FieldRemoveBOnCloseHandler(this)); if (m_fldToCheck != null) if (m_fldToCheck.getRecord() != this.getOwner()) // If field is not in this file, remember to remove it m_fldToCheck.addListener(new FieldRemoveBOnCloseHandler(this)); //x this.getOwner().close(); // Must requery after setting dependent fields! } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_fldThisFile == null) if (thisFileFieldName != null) m_fldThisFile = this.getOwner().getField(thisFileFieldName); if (m_fldThisFile2 == null) if (thisFileFieldName2 != null) m_fldThisFile2 = this.getOwner().getField(thisFileFieldName2); if (m_fldThisFile3 == null) if (thisFileFieldName3 != null) m_fldThisFile3 = this.getOwner().getField(thisFileFieldName3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**