/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, BaseClass.DESCRIPTION_KEY, BaseClass.DESCRIPTION, true, true); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, BaseClass.DESCRIPTION_KEY, BaseClass.DESCRIPTION, true, true); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, BaseRate.DESCRIPTION_KEY, BaseRate.DESCRIPTION, true, true); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, BaseRate.DESCRIPTION_KEY, BaseRate.DESCRIPTION, true, true); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @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) { Record record = this.getReferenceRecord(); // Get/make the record that describes the referenced class. if (record != null) return this.setupTableLookup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, record.getDefaultScreenKeyArea(), m_iDescription, true, false); else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.getReferenceRecord(); // Get/make the record that describes the referenced class. if (record != null) return this.setupTableLookup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, record.getDefaultScreenKeyArea(), m_iDescription, true, false); else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @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) { ScreenField screenField = null; this.makeReferenceRecord(); // Get/make the record that describes the referenced class. screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, false); itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST_BUTTON_WITH_GAP, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_DESC; screenField = super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); return screenField; }
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) { Converter fldProductDesc = record.getField(Product.DESCRIPTION); fldProductDesc = new FieldLengthConverter(fldProductDesc, 30); String iKeyArea = Product.CODE_KEY; if (targetScreen instanceof GridScreenParent) iKeyArea = null; return this.setupTableLookup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, iKeyArea, fldProductDesc, true, true); } else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); } /**
/** * Set up the default screen 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 converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @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) { Record record = this.makeReferenceRecord(); if (record != null) { Converter fldProductDesc = record.getField(Product.DESCRIPTION); fldProductDesc = new FieldLengthConverter(fldProductDesc, 30); String iKeyArea = Product.CODE_KEY; if (targetScreen instanceof GridScreenParent) iKeyArea = null; return this.setupTableLookup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, iKeyArea, fldProductDesc, true, true); } else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); } /**
return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties);
return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc);