/** * Convert this index value to a display string. * @param index The index of the display string to retrieve. * @return The display string. */ public String convertIndexToDisStr(int index) { int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) return m_record.getField(m_iFieldSeq).getString(); else return Constants.BLANK; } /**
/** * Convert this index value to a display string. * @param index The index of the display string to retrieve. * @return The display string. */ public String convertIndexToDisStr(int index) { int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) return m_record.getField(m_iFieldSeq).getString(); else return Constants.BLANK; } /**
/** * Convert this index value to a display string. * @param index The index of the display string to retrieve. * @return The display string. */ public String convertIndexToDisStr(int index) { int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) { if (displayFieldName != null) return m_record.getField(displayFieldName).getString(); else return m_record.getField(m_iFieldSeq).getString(); } else return Constants.BLANK; } /**
/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { // User selected an item... Read it in! int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) m_record.handleRecordChange(null, DBConstants.SELECT_TYPE, bDisplayOption); // Record selected!!! // These next lines causes the FieldBehaviors with SCREEN_MOVE to be executed!!! FieldInfo field = this.getField(); if (iErrorCode == DBConstants.NORMAL_RETURN) if (field != null) { if (field instanceof ReferenceField) ((ReferenceField)field).setReference(m_record, bDisplayOption, iMoveMode); else if (field instanceof StringField) field.setString(m_record.getField(m_iFieldSeq).toString()); } return iErrorCode; } /**
/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { // User selected an item... Read it in! int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) m_record.handleRecordChange(null, DBConstants.SELECT_TYPE, bDisplayOption); // Record selected!!! // These next lines causes the FieldBehaviors with SCREEN_MOVE to be executed!!! FieldInfo field = this.getField(); if (iErrorCode == DBConstants.NORMAL_RETURN) if (field != null) { if (field instanceof ReferenceField) ((ReferenceField)field).setReference(m_record, bDisplayOption, iMoveMode); else if (field instanceof StringField) field.setString(m_record.getField(m_iFieldSeq).toString()); } return iErrorCode; } /**
/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { // User selected an item... Read it in! int iErrorCode = this.moveToIndex(index); if (iErrorCode == DBConstants.NORMAL_RETURN) m_record.handleRecordChange(null, DBConstants.SELECT_TYPE, bDisplayOption); // Record selected!!! // These next lines causes the FieldBehaviors with SCREEN_MOVE to be executed!!! FieldInfo field = this.getField(); if (iErrorCode == DBConstants.NORMAL_RETURN) if (field != null) { if (field instanceof ReferenceField) ((ReferenceField)field).setReference(m_record, bDisplayOption, iMoveMode); else if (field instanceof StringField) { { if (displayFieldName != null) return field.setString(m_record.getField(displayFieldName).toString()); else return field.setString(m_record.getField(m_iFieldSeq).toString()); } } } return iErrorCode; } /**
this.moveToIndex(-1); // Move off any valid record if (m_bIncludeBlankOption) if (field != null)
this.moveToIndex(-1); // Move off any valid record if (m_bIncludeBlankOption) if (field != null)
this.moveToIndex(-1); // Move off any valid record if (m_bIncludeBlankOption) if (field != null)