/** * Get this field's parent record. * @return The parent record. */ public Record getRecord() { return (Record)super.getRecord(); } /**
/** * Get this field's parent record. * @return The parent record. */ public Record getRecord() { return (Record)super.getRecord(); } /**
/** * Get this field's parent record. * @return The parent record. */ public Record getRecord() { return (Record)super.getRecord(); } /**
/** * Get the short field description. * @return The field desc. If null, return the resource from the record's resouce file. * If not available, return the field name. */ public String getFieldDesc() { String strFieldDesc = null; if (m_strFieldDesc != null) // Field desc null? (using default) strFieldDesc = m_strFieldDesc; else { // Get the description from the resource file if (this.getRecord() != null) strFieldDesc = this.getRecord().getString(this.getFieldName()); } return strFieldDesc; } /**
/** * Get the long field description tip. * Look in the resource for the long description, if not found, return the field desc. * @return The field tip. */ public String getFieldTip() { String strTipKey = this.getFieldName() + Constants.TIP; String strFieldTip = strTipKey; if (this.getRecord() != null) strFieldTip = this.getRecord().getString(strTipKey); if (strFieldTip == strTipKey) return this.getFieldDesc(); return strFieldTip; } /**
/** * Convert and move string to this field. * Override this method to convert the String to the actual Physical Data Type. * @param bState the state to set the data to. * @param bDisplayOption Display the data on the screen if true. * @param iMoveMode INIT, SCREEN, or READ move mode. * @return The error code (or NORMAL_RETURN). */ public int setString(String strString, boolean bDisplayOption, int iMoveMode) // init this field override for other value { try { Object objData = Converter.convertObjectToDatatype(strString, this.getDataClass(), null, m_ibScale); if (objData == null) if (this.getDataClass() != Boolean.class) if (!(Number.class.isAssignableFrom(this.getDataClass()))) if (this.getDataClass() != java.util.Date.class) objData = Constants.BLANK; // To set a null internally, you must call setData directly return this.setData(objData, bDisplayOption, iMoveMode); } catch (Exception ex) { String strError = ex.getMessage(); if (strError == null) strError = ex.getClass().getName(); if (this.getRecord() != null) if (this.getRecord().getTask() != null) return this.getRecord().getTask().setLastError(strError); return Constants.ERROR_RETURN; } } /**
FieldList recBooking = fieldInfo.getField().getRecord(); Converter fldPricingStatus = recBooking.getField(Booking.PRICING_STATUS_ID); JComponent compPricingStatus = this.getTourGeekScreen().getMainSearchPane().addSecondaryIconComponent(recPricingStatus, fldPricingStatus, PricingStatus.ID, PricingStatus.ICON, null);
if (BookingDetail.BOOKING_DETAIL_FILE.equalsIgnoreCase(fieldInfo.getField().getRecord().getTableNames(false))) // Since Description can be in currency dislay also.
/** * Create the dist record and set up the sub-file. */ public BankTrxBatchDist makeDistRecord(RecordOwner recordOwner, Record recBatchDetail) { RecordOwner ro = recordOwner; if (recordOwner == null) if (this.getField() != null) ro = ((BaseField)this.getField()).getRecord().findRecordOwner(); CashBatchDist recCashBatchDist = this.createDistRecord(ro); if (recordOwner == null) { if (recCashBatchDist.getRecordOwner() != null) recCashBatchDist.getRecordOwner().removeRecord(recCashBatchDist); if (this.getField() != null) if (this.getField().getRecord() != null) ((BaseField)this.getField()).getRecord().addListener(new FreeOnFreeHandler(recCashBatchDist)); } recCashBatchDist.setKeyArea(CashBatchDist.CASH_BATCH_DETAIL_ID_KEY); recCashBatchDist.addListener(new SubFileFilter(recBatchDetail)); return recCashBatchDist; } /**