/** * Add icon to popup. */ public ScreenField setupPopupView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenField screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreen)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Add icon to popup. */ public ScreenField setupPopupView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenField screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreen)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Add icon to popup. */ public ScreenComponent setupPopupView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenComponent screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreenParent)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Set up the default screen control for this field. * By default, this is set to a popup. * @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 ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { // Add code here to setup the popup or lookup button Record record = this.getReferenceRecord(); // Get/make the record that describes the referenced class. if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, record.getDefaultScreenKeyArea(), this.getDefaultDisplayFieldSeq(), true, false); else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); } /**
/** * Set up the default screen control for this field. * By default, this is set to a popup. * @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) { // Add code here to setup the popup or lookup button Record record = this.getReferenceRecord(); // Get/make the record that describes the referenced class. if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, record.getDefaultScreenKeyArea(), this.getDefaultDisplayFieldSeq(), true, false); else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**
/** * Set up the default screen control for this field. * By default, this is set to a popup. * @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) { // Add code here to setup the popup or lookup button Record record = this.getReferenceRecord(); // Get/make the record that describes the referenced class. if (record != null) return this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, record.getDefaultScreenKeyArea(), this.getDefaultDisplayFieldSeq(), true, false); else return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**