/** * Constructor. * @param converter The next converter in the converter chain. * @param converterAlt The first converter on this list of alternates. */ public MultipleFieldConverter(Converter converter, Converter converterAlt) { this(); this.init(converter, converterAlt); } /**
/** * Constructor. * @param converter The next converter in the converter chain. */ public MultipleFieldConverter(Converter converter) { this(); this.init(converter, null); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param converterAlt The first converter on this list of alternates. */ public MultipleFieldConverter(Converter converter, Converter converterAlt) { this(); this.init(converter, converterAlt); } /**
/** * Constructor. * @param converter The next converter in the converter chain. * @param converterAlt The first converter on this list of alternates. */ public MultipleFieldConverter(Converter converter, Converter converterAlt) { this(); this.init(converter, converterAlt); } /**
/** * Constructor. * @param converter The next converter in the converter chain. */ public MultipleFieldConverter(Converter converter) { this(); this.init(converter, null); } /**
/** * Initialize this converter. * @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 void init(Converter converter, Converter convAlternate, Converter convCheckmark) { super.init(converter, convAlternate); m_convCheckmark = convCheckmark; } /**
/** * Initialize this converter. * @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 void init(Converter converter, Converter convAlternate, Converter convCheckmark) { super.init(converter, convAlternate); m_convCheckmark = convCheckmark; } /**
/** * Constructor. * @param converter The next converter in the converter chain. */ public MultipleFieldConverter(Converter converter) { this(); this.init(converter, null); } /**
/** * Initialize this converter. * @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 void init(Converter converter, Converter convAlternate, Converter convCheckmark) { super.init(converter, convAlternate); m_convCheckmark = convCheckmark; } /**
/** * Initialize this converter. * @param converter The next converter in the converter chain. * @param cnvDependent The alternate converter to use if the converter matches the string (blank). * @param strCompare The string to compare with the next converter's value to decide whether to display the alternate. */ public void init(Converter converter, Converter cnvDependent, String strCompare) { super.init(converter, cnvDependent); if ((strCompare == null) || (strCompare.length() == 0)) m_strCompare = Constants.BLANK; else m_strCompare = strCompare; } /**
/** * Initialize this converter. * @param converter The next converter in the converter chain. * @param cnvDependent The alternate converter to use if the converter matches the string (blank). * @param strCompare The string to compare with the next converter's value to decide whether to display the alternate. */ public void init(Converter converter, Converter cnvDependent, String strCompare) { super.init(converter, cnvDependent); if ((strCompare == null) || (strCompare.length() == 0)) m_strCompare = Constants.BLANK; else m_strCompare = strCompare; } /**
/** * Initialize this converter. * @param converter The next converter in the converter chain. * @param cnvDependent The alternate converter to use if the converter matches the string (blank). * @param strCompare The string to compare with the next converter's value to decide whether to display the alternate. */ public void init(Converter converter, Converter cnvDependent, String strCompare) { super.init(converter, cnvDependent); if ((strCompare == null) || (strCompare.length() == 0)) m_strCompare = Constants.BLANK; else m_strCompare = strCompare; } /**
/** * Init. * @param record The merge record. * @param iFieldSeq The sequence of the field in the target records. */ public void init(Record record, int iFieldSeq, int iSecondaryFieldSeq) { Converter converter = null; m_recMerge = record; m_iFieldSeq = iFieldSeq; m_iSecondaryFieldSeq = iSecondaryFieldSeq; if (record != null) converter = this.getTargetField(null); super.init(converter, null); if (record != null) record.addListener(new RemoveConverterOnCloseHandler(this)); // Because this is a converter (not a fieldConverter) if (m_recMerge != null) if (m_recMerge.getTable() instanceof MultiTable) { // Add all the fields in the sub-records MultiTable multiTable = (MultiTable)m_recMerge.getTable(); Iterator<BaseTable> iterator = multiTable.getTables(); while (iterator.hasNext()) { BaseTable table = (BaseTable)iterator.next(); Converter field = this.getTargetField(table.getRecord()); this.addConverterToPass(field); // Add it, and } } } /**
/** * Init. * @param record The merge record. * @param iFieldSeq The sequence of the field in the target records. */ public void init(Record record, int iFieldSeq, int iSecondaryFieldSeq) { Converter converter = null; m_recMerge = record; m_iFieldSeq = iFieldSeq; m_iSecondaryFieldSeq = iSecondaryFieldSeq; if (record != null) converter = this.getTargetField(null); super.init(converter, null); if (record != null) record.addListener(new RemoveConverterOnCloseHandler(this)); // Because this is a converter (not a fieldConverter) if (m_recMerge != null) if (m_recMerge.getTable() instanceof MultiTable) { // Add all the fields in the sub-records MultiTable multiTable = (MultiTable)m_recMerge.getTable(); Iterator<BaseTable> iterator = multiTable.getTables(); while (iterator.hasNext()) { BaseTable table = (BaseTable)iterator.next(); Converter field = this.getTargetField(table.getRecord()); this.addConverterToPass(field); // Add it, and } } } /**
if (record != null) converter = this.getTargetField(null); super.init(converter, null); if (record != null) record.addListener(new RemoveConverterOnCloseHandler(this)); // Because this is a converter (not a fieldConverter)