/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Request pAmRequests) { m_pAmRequests = null; m_pAmRequests = pAmRequests; super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, null, "Brochure history", null, null, null); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Request pAmRequests) { m_pAmRequests = null; m_pAmRequests = pAmRequests; super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, null, "Brochure history", null, null, null); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Request pAmRequests) { m_pAmRequests = null; m_pAmRequests = pAmRequests; super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, "", "Bundles", null, null, null); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Request pAmRequests) { m_pAmRequests = null; m_pAmRequests = pAmRequests; super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, "", "Bundles", null, null, null); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { //?m_ButtonUp = ""; //?m_ButtonDown = ""; //?m_ButtonText = "Land Rates"; //?m_DisplayDesc = (displayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC); //?this.Create(itsLocation, parentScreen, fieldConverter, displayFieldDesc); super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**
/** * Constructor. * @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. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc) { this(); this.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, null, null, null); } /**
/** * Constructor. * @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 strImage The image filename for this button. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, String strImage, int iDisplayFieldDesc, String strValue) { this(); this.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, null, strImage, null, null); } /**
/** * Initialize class fields. */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { //?m_ButtonUp = ""; //?m_ButtonDown = ""; //?m_ButtonText = "Land Rates"; //?m_DisplayDesc = (displayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC); //?this.Create(itsLocation, parentScreen, fieldConverter, displayFieldDesc); super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip); } /**
/** * Constructor. * @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. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc) { this(); this.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, null, null, null); } /**
/** * Constructor. * @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 strImage The image filename for this button. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, String strImage, int iDisplayFieldDesc, String strValue) { this(); this.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, null, strImage, null, null); } /**
/** * 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. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { this(); this.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. */ public SButtonBox(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip) { this(); this.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? */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { String strValue = null; String strDesc = null; String strImage = null; String strCommand = null; String strToolTip = null; if (properties != null) { strValue = (String)properties.get(ScreenModel.VALUE); strDesc = (String)properties.get(ScreenModel.DESC); strImage = (String)properties.get(ScreenModel.IMAGE); strCommand = (String)properties.get(ScreenModel.COMMAND); strToolTip = (String)properties.get(ScreenModel.TOOLTIP); if (Constants.TRUE.equals(properties.get(ScreenModel.NEVER_DISABLE))) neverDisable = true; } this.init((ScreenLocation)itsLocation, (BasePanel)parentScreen, (Converter)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 properties */ public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); for (int iIndex = 0; iIndex < 32; iIndex++) { Object icon = this.getIcon(iIndex); if (icon == null) break; this.addIcon(icon, iIndex); } } /**
/** * 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); } /**