/** * Get the on/off state of this radio control. * @return true if the target string is in the field. */ public boolean getState() { boolean bReturnValue; if (m_strTargetValue != null) { if (m_boolMaskValue.booleanValue()) bReturnValue = (this.getString().indexOf(m_strTargetValue) != -1); // Is the target value in the field string else bReturnValue = m_strTargetValue.equals(this.toString()); // Is the target value in the field string } else if (m_fldTargetValue != null) bReturnValue = this.equals(m_fldTargetValue); // Is the target value in the field string else bReturnValue = this.getField().isNull(); // Is the field string null? if (m_bTrueIfMatch) return bReturnValue; else return !bReturnValue; } /**
/** * Get the on/off state of this radio control. * @return true if the target string is in the field. */ public boolean getState() { boolean bReturnValue; if (m_strTargetValue != null) { if (m_boolMaskValue.booleanValue()) bReturnValue = (this.getString().indexOf(m_strTargetValue) != -1); // Is the target value in the field string else bReturnValue = m_strTargetValue.equals(this.toString()); // Is the target value in the field string } else if (m_fldTargetValue != null) bReturnValue = this.equals(m_fldTargetValue); // Is the target value in the field string else bReturnValue = this.getField().isNull(); // Is the field string null? if (m_bTrueIfMatch) return bReturnValue; else return !bReturnValue; } /**
/** * Get the state of this boolean field. * Usually overidden. * @return True if data is true. */ public boolean getState() { if ((this.getField().isNull()) || (this.getField().getLength() == 0)) return false; else return true; } /**
/** * Get the on/off state of this radio control. * @return true if the target string is in the field. */ public boolean getState() { boolean bReturnValue; if (m_strTargetValue != null) { if (m_boolMaskValue.booleanValue()) bReturnValue = (this.getString().indexOf(m_strTargetValue) != -1); // Is the target value in the field string else bReturnValue = m_strTargetValue.equals(this.toString()); // Is the target value in the field string } else if (m_fldTargetValue != null) bReturnValue = this.equals(m_fldTargetValue); // Is the target value in the field string else bReturnValue = this.getField().isNull(); // Is the field string null? if (m_bTrueIfMatch) return bReturnValue; else return !bReturnValue; } /**
FieldInfo field = this.getField(); boolean bIsNull = true; if (field != null) if (!field.isNull()) bIsNull = false; if (strCompare != null)
FieldInfo field = this.getField(); boolean bIsNull = true; if (field != null) if (!field.isNull()) bIsNull = false; if (strCompare != null)
FieldInfo field = this.getField(); boolean bIsNull = true; if (field != null) if (!field.isNull()) bIsNull = false; if (strCompare != null)
/** * Given this source record, read the destination record. * @param recSource The source record * @param recDest The destination record * @return True if found. */ public boolean readDestRecord(FieldList recSource, Record recDest) { boolean bFound = super.readDestRecord(recSource, recDest); if (!bFound) return bFound; if (!recSource.getField(City.COUNTRY_ID).isNull()) if (!recDest.getField(City.COUNTRY_ID).isNull()) if (!recSource.getField(City.COUNTRY_ID).equals(recDest.getField(City.COUNTRY_ID))) return false; // Not a match return bFound; } /**
if (!this.getCounterField().isNull())
if (!this.getCounterField().isNull())
if (this.getScreenField().getConverter() != null) if (this.getScreenField().getConverter().getField() != null) if (!this.getScreenField().getConverter().getField().isNull())
if ((m_bSetFilterIfNull) || (!m_recordMain.getCounterField().isNull()))
if ((m_bSetFilterIfNull) || (!m_recordMain.getCounterField().isNull()))
if ((m_bSetFilterIfNull) || (!m_recordMain.getCounterField().isNull()))
recCountry.getField(Country.NAME).setString(strCountry); try { if (recDest.getCounterField().isNull())
if (!field.isNull()) if (!table.getRecord().isAutoSequence())