/** * Set up the default control for this field. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public Object setupDefaultView(Object itsLocation, Object targetScreen, Convert converter, int iDisplayFieldDesc) // Add this view to the list { // I NEVER call the thin implementation. return this.setupDefaultView((ScreenLocation)itsLocation, (BasePanel)targetScreen, (Converter)converter, iDisplayFieldDesc); } /**
/** * Set up the default control for this field. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public Object setupDefaultView(Object itsLocation, Object targetScreen, Convert converter, int iDisplayFieldDesc) // Add this view to the list { // I NEVER call the thin implementation. return this.setupDefaultView((ScreenLocation)itsLocation, (BasePanel)targetScreen, (Converter)converter, iDisplayFieldDesc); } /**
/** * Set up the default control for this field. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, int iDisplayFieldDesc) // Add this view to the list { return this.setupDefaultView(itsLocation, targetScreen, this, iDisplayFieldDesc); } /**
/** * Set up the default control for this field. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, int iDisplayFieldDesc) // Add this view to the list { return this.setupDefaultView(itsLocation, targetScreen, this, iDisplayFieldDesc); } /**
/** * Set up the default control for this field. * Adds the default screen control for the current converter, and makes me it's converter. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert convert, int iDisplayFieldDesc, Map<String, Object> properties) { ScreenComponent sField = null; Converter converter = this.getNextConverter(); if (converter != null) sField = converter.setupDefaultView(itsLocation, targetScreen, convert, iDisplayFieldDesc, properties); else sField = super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); if (sField != null) { // Get rid of any and all links to/from field/converter converter.removeComponent(sField); // Have the field add me to its list for display sField.setConverter(this); } return sField; } /**
/** * Set up the default control for this field. * Adds the default screen control for the current converter, and makes me it's converter. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, int iDisplayFieldDesc) // Add this view to the list { ScreenField sField = null; Converter converter = this.getNextConverter(); if (converter != null) sField = (ScreenField)converter.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); else sField = super.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); if (sField != null) { // Get rid of any and all links to/from field/converter converter.removeComponent(sField); // Have the field add me to its list for display sField.setConverter(this); } return sField; } /**
/** * Set up the default control for this field. * Adds the default screen control for the current converter, and makes me it's converter. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, int iDisplayFieldDesc) // Add this view to the list { ScreenField sField = null; Converter converter = this.getNextConverter(); if (converter != null) sField = (ScreenField)converter.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); else sField = super.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); if (sField != null) { // Get rid of any and all links to/from field/converter converter.removeComponent(sField); // Have the field add me to its list for display sField.setConverter(this); } return sField; } /**
/** * AddStandardScreenFields Method. */ public void addStandardScreenFields(boolean bTopNext) { this.getMainRecord().getField(BookingDetail.STATUS_SUMMARY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getMainRecord().getField(BookingDetail.INFO_STATUS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getMainRecord().getField(BookingDetail.INFO_MESSAGE_TRANSPORT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC); this.getMainRecord().getField(BookingDetail.INVENTORY_STATUS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getMainRecord().getField(BookingDetail.INVENTORY_MESSAGE_TRANSPORT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC); this.getMainRecord().getField(BookingDetail.COST_STATUS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getMainRecord().getField(BookingDetail.COST_MESSAGE_TRANSPORT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC); this.getMainRecord().getField(BookingDetail.PRODUCT_STATUS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getMainRecord().getField(BookingDetail.PRODUCT_MESSAGE_TRANSPORT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC); this.getMainRecord().getField(BookingDetail.ACK_DAYS).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); FieldConverter converter = new FieldLengthConverter(this.getMainRecord().getField(BookingDetail.REMOTE_BOOKING_NO), 30); converter.setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).getField(BookingDetail.TOTAL_PRICE_LOCAL).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); } /**