/** * Retrieve (in string format) from this field. * @return The display field of the grid record. */ public String getString() { FieldInfo field = this.getField(); if (field instanceof StringField) return field.toString(); return m_record.getField(m_iFieldSeq).getString(); // Return the desc string } /**
/** * Retrieve (in string format) from this field. * @return The display field of the grid record. */ public String getString() { FieldInfo field = this.getField(); if (field instanceof StringField) return field.toString(); return m_record.getField(m_iFieldSeq).getString(); // Return the desc string } /**
/** * Retrieve (in string format) from this field. * @return The display field of the grid record. */ public String getString() { FieldInfo field = this.getField(); if (field instanceof StringField) return field.toString(); if (displayFieldName != null) return m_record.getField(displayFieldName).getString(); // Return the desc string else return m_record.getField(m_iFieldSeq).getString(); // Return the desc string } /**
/** * 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; } /**
FieldInfo field = this.getField(); if (field != null)
FieldInfo field = this.getField(); if (field != null)
FieldInfo field = this.getField(); if (field != null)