/** * Get the next Converter in the chain. */ public Converter getNextConverter() { if ((m_bEnableTranslation == true) && (this.getConverterToPass(m_bSetData) != null)) return this.getConverterToPass(m_bSetData); // Retrieve the dependent field else return super.getNextConverter(); // Retrieve this info } /**
/** * Initialize this converter. * @param converter The next converter in the converter chain. * @param converterAlt The first converter on this list of alternates. */ public void init(Converter converter, Converter converterAlt) { m_bEnableTranslation = true; m_bSetData = false; super.init(converter); if (converterAlt != null) this.addConverterToPass(converterAlt); } /**
/** * Initialize this converter. * @param converter The property field. * @param strProperty The property to display/set in the properties field. */ public void init(Converter converter, String strProperty) { m_strProperty = strProperty; super.init(converter); } /**
/** * Get the maximum length of this field. * @return The length plus one character for the dash. */ public int getMaxLength() { // Must be overidden return super.getMaxLength() + 1; // Include a space for the dash } /**
/** * Free this converter. */ public void free() { super.free(); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param cnvDependent The alternate converter to use if the converter matches the string (blank). */ public AltFieldConverter(Converter converter, Converter cnvDependent) { this(); this.init(converter, cnvDependent, null); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param bDebit If true, output this field if it is positive. */ public DrCrConverter(Converter converter, boolean bDebit) { this(); this.init(converter, bDebit); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param dateFormat The date format. */ public DateConverter(Converter converter, int dateFormat) { this(); this.init(converter, dateFormat); } /**
/** * Free this converter. */ public void free() { super.free(); m_objTarget = null; } /**
/** * Constructor. * @param converter The next converter in the converter chain. */ public IndexConverter(Converter converter) { this(); this.init(converter); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param convCheckmark The converter to check the state of (if true, use the alternate converter). * @param converterAlt The converter to use if the checkmark is true. */ public FlagDepFieldConverter(Converter converter, Converter convAlternate, Converter convCheckmark) { this(); this.init(converter, convAlternate, convCheckmark); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param convDescField The converter to get the description from. */ public FieldDescConverter(Converter converter, Converter convDescField) { this(); this.init(converter, null, convDescField); } /**
/** * Get the next Converter in the chain. */ public Converter getNextConverter() { if ((m_bEnableTranslation == true) && (this.getConverterToPass(m_bSetData) != null)) return this.getConverterToPass(m_bSetData); // Retrieve the dependent field else return super.getNextConverter(); // Retrieve this info } /**
/** * Initialize this converter. * @param converter The next converter in the converter chain. */ public void init(Converter converter) { super.init(converter); } /**
/** * Get the maximum length of this field. * @return The fake field length. */ public int getMaxLength() { if (m_iFakeLength != -1) return m_iFakeLength; else return super.getMaxLength(); } /**
/** * Free this converter. */ public void free() { m_strProperty = null; super.free(); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param cnvDependent The alternate converter to use if the converter matches the string (blank). */ public AltFieldConverter(Converter converter, Converter cnvDependent, String strCompare) { this(); this.init(converter, cnvDependent, strCompare); } /**
/** * Get the next Converter in the chain. */ public Converter getNextConverter() { if ((m_bEnableTranslation == true) && (this.getConverterToPass(m_bSetData) != null)) return this.getConverterToPass(m_bSetData); // Retrieve the dependent field else return super.getNextConverter(); // Retrieve this info } /**
/** * Get the maximum length of this field. * @return The fake field length. */ public int getMaxLength() { if (m_iFakeLength != -1) return m_iFakeLength; else return super.getMaxLength(); } /**
/** * Free this converter. */ public void free() { super.free(); m_strAltDesc = null; } /**