/** * Get menu type. * @param recMenu The menu record. * @return The menu type. */ public String getMenuType(Record recMenu) { return recMenu.getField(Menus.kType).getString(); } /**
/** * Get menu icon. * @param recMenu The menu record. * @return The icon name. */ public String getMenuIcon(Record recMenu) { return recMenu.getField(Menus.kIconResource).getString(); } /**
/** * Get menu name. * @param recMenu The menu record. * @return The menu name. */ public String getMenuName(Record recMenu) { return recMenu.getField(MenusModel.NAME).getString(); } /**
/** * Get menu name. * @param recMenu The menu record. * @return The menu name. */ public String getMenuName(Record recMenu) { return recMenu.getField(Menus.kName).getString(); } /**
/** * Get menu name. * @param recMenu The menu record. * @return The menu name. */ public String getMenuName(Record recMenu) { return recMenu.getField(DBConstants.MAIN_FIELD + 1).getString(); } /**
/** * Convert the field's code to the display's index (for popup). * @return The value in this field to a 0 based index in a table. */ public int convertFieldToIndex() { String tempString = this.getString(); return this.convertStringToIndex(tempString); } /**
/** * Get menu type. * @param recMenu The menu record. * @return The menu type. */ public String getMenuType(Record recMenu) { return recMenu.getField(MenusModel.TYPE).getString(); } /**
/** * Get menu icon. * @param recMenu The menu record. * @return The icon name. */ public String getMenuIcon(Record recMenu) { return recMenu.getField(MenusModel.ICON_RESOURCE).getString(); } /**
/** * Convert the field's code to the display's index (for popup). * @return The value in this field to a 0 based index in a table. */ public int convertFieldToIndex() { String tempString = this.getString(); return this.convertStringToIndex(tempString); } /**
/** * Get menu name. * @param recMenu The menu record. * @return The menu name. */ public String getMenuName(Record recMenu) { return recMenu.getField(DBConstants.MAIN_FIELD + 1).getString(); } /**
/** * Convert the field's code to the display's index (for popup). * @return The value in this field to a 0 based index in a table. */ public int convertFieldToIndex() { String tempString = this.getString(); return this.convertStringToIndex(tempString); } /**
/** * Set a property with this field's name as the key to this field's current value. * (Utility method). * @param field The field to save. */ public void saveField(BaseField field) { String strFieldName = field.getFieldName(); // Fieldname only String strData = field.getString(); this.setProperty(strFieldName, strData); } }
/** * Set a property with this field's name as the key to this field's current value. * (Utility method). * @param field The field to save. */ public void saveField(BaseField field) { String strFieldName = field.getFieldName(); // Fieldname only String strData = field.getString(); this.setProperty(strFieldName, strData); } }
/** * 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; } /**
/** * 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 } /**
/** * Compare the field to the string. * @return true if match. */ public boolean compareFieldToString() { if (m_strCompareString == null) return (this.getOwner().isNull()); else return (this.getOwner().getString().equals(m_strCompareString)); } }
/** * Compare the field to the string. * @return true if match. */ public boolean compareFieldToString() { if (m_strCompareString == null) return (this.getOwner().isNull()); else return (this.getOwner().getString().equals(m_strCompareString)); } }
/** * Compare the field to the string. * @return true if match. */ public boolean compareFieldToString() { if (m_strCompareString == null) return (this.getOwner().isNull()); else return (this.getOwner().getString().equals(m_strCompareString)); } }
/** * 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 } /**