/** * 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 ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) // Add this view to the list { ScreenComponent sField = null; BaseField field = (BaseField)this.getField(); if (field != null) { sField = field.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); if (sField != null) if (sField.getConverter() == null) sField.setConverter(this); } else sField = BaseField.createScreenComponent(ScreenModel.EDIT_TEXT, itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); return sField; } }
/** * 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, Converter converter, int iDisplayFieldDesc) // Add this view to the list { ScreenField sField = null; BaseField field = (BaseField)this.getField(); if (field != null) { sField = field.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); if (sField != null) if (sField.getConverter() == null) sField.setConverter(this); } else sField = new SEditText(itsLocation, targetScreen, converter, iDisplayFieldDesc); return sField; } }
/** * 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, Converter converter, int iDisplayFieldDesc) // Add this view to the list { ScreenField sField = null; BaseField field = (BaseField)this.getField(); if (field != null) { sField = field.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); if (sField != null) if (sField.getConverter() == null) sField.setConverter(this); } else sField = new SEditText(itsLocation, targetScreen, converter, iDisplayFieldDesc); return sField; } }