/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new RealField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } }
/** * Constructor. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public RealField(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { this(); this.init(record, strName, iDataLength, strDesc, strDefault); } /**
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new RealField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } }
/** * Constructor. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public RealField(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { this(); this.init(record, strName, iDataLength, strDesc, strDefault); } /**
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new RealField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } }
/** * Constructor. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public RealField(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { this(); this.init(record, strName, iDataLength, strDesc, strDefault); } /**
field = new StringField(this, CURRENCY_CODE, 3, null, null); if (iFieldSeq == 5) field = new RealField(this, LAST_RATE, 10, null, null); if (iFieldSeq == 6) field = new DateField(this, RATE_CHANGED_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); field = new UserField(this, RATE_CHANGED_BY, 16, null, null); if (iFieldSeq == 8) field = new RealField(this, COSTING_RATE, 10, null, null); if (iFieldSeq == 9) field = new DateField(this, COSTING_CHANGED_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);
field = new RealField(this, EXCHANGE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 27) field = new ShortField(this, PAX, 3, null, null);
field = new RealField(this, EXCHANGE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 27) field = new ShortField(this, PAX, 3, null, null);
field = new FullCurrencyField(this, AMOUNT, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 15) field = new RealField(this, EXCHANGE, 10, null, null); if (iFieldSeq == 16) field = new PreferredSignField(this, INV_SIGN, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 22) field = new RealField(this, DEPARTURE_EXCHANGE, 10, null, null); field.addListener(new InitOnceFieldHandler(null));
field = new FullCurrencyField(this, TOTAL_COST, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 25) field = new RealField(this, EXCHANGE, 10, null, new Double(1.0)); if (iFieldSeq == 26)
field = new FullCurrencyField(this, TOTAL_COST, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 25) field = new RealField(this, EXCHANGE, 10, null, new Double(1.0)); if (iFieldSeq == 26)