/** * Initialize. * @param itsLocation The location of this component within the parent. * @param parentScreen The parent screen. * @param fieldConverter The field this screen field is linked to. * @param iDisplayFieldDesc Do I display the field desc? * @param strValue The value to set the field on button press. * @param strDesc The description of this button. * @param strImage The image filename for this button. * @param strCommand The command to send on button press. * @param strToolTip The tooltip for this button. * @param record The (optional) record. * @param field The (optional) field. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip, Record record, BaseField field) { m_record = record; m_field = field; m_strValue = strValue; m_iDisplayFieldDesc = iDisplayFieldDesc; if (record != null) if (fieldConverter == null) if (this.getDisplayFieldDesc(this)) { // Use the record name as the desc fieldConverter = new FieldDescConverter(null, record.getRecordName()); record.addListener(new RemoveConverterOnCloseHandler(fieldConverter)); // Remove on close } super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**
/** * Initialize. * @param itsLocation The location of this component within the parent. * @param parentScreen The parent screen. * @param fieldConverter The field this screen field is linked to. * @param iDisplayFieldDesc Do I display the field desc? * @param strValue The value to set the field on button press. * @param strDesc The description of this button. * @param strImage The image filename for this button. * @param strCommand The command to send on button press. * @param strToolTip The tooltip for this button. * @param record The (optional) record. * @param field The (optional) field. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip, Record record, BaseField field) { m_record = record; m_field = field; m_strValue = strValue; m_iDisplayFieldDesc = iDisplayFieldDesc; if (record != null) if (fieldConverter == null) if (this.getDisplayFieldDesc(this)) { // Use the record name as the desc fieldConverter = new FieldDescConverter(null, record.getRecordName()); record.addListener(new RemoveConverterOnCloseHandler(fieldConverter)); // Remove on close } super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**