/** * 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 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; } /**