/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record mainFile, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(mainFile, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Open the files and setup the screen. * @param record The main record for this screen. * @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(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record mainFile, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(mainFile, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Open the files and setup the screen. * @param record The main record for this screen. * @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(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Constructor. * @param record The main record for this screen. */ public BaseScreen(Record record) { this(); ScreenLocation itsLocation = null; BasePanel parentScreen = null; Converter fieldConverter = null; int iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_DESC; this.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, null); } /**
/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Initialize the member fields. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Constructor. * @param record The main record for this screen. */ public BaseScreen(Record record) { this(); ScreenLocation itsLocation = null; BasePanel parentScreen = null; Converter fieldConverter = null; int iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_DESC; this.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, null); } /**
/** * Constructor. * @param record The main record for this screen. * @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 BaseScreen(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { this(); this.init(mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Constructor. * @param record The main record for this screen. * @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 BaseScreen(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { this(); this.init(mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Open the files and setup the screen. * @param record The main record for this screen. * @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(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); this.resizeToContent(this.getTitle()); } /**
public static BaseScreen createScreenFromClassName(String strScreenClass, Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { strScreenClass = ClassFactory.fixClassName(strScreenClass, Utility.getRecordOwner(record)); BaseScreen screen = BaseScreen.makeNewScreen(strScreenClass, itsLocation, parentScreen, iDisplayFieldDesc, properties, false); screen.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); return screen; } public static BaseScreen createScreenFromClassName(String strScreenClass, Record recHeader, Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties)
/** * Constructor. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); this.setMenuProperty(null); // Set the menu to the current "menu" parameter. this.resizeToContent(this.getTitle()); } /**
/** * Constructor. * @param record The main record for this screen. * @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(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); this.setMenuProperty(null); // Set the menu to the current "menu" parameter. this.resizeToContent(this.getTitle()); } /**
/** * Make a screen window and put the screen with this class name into it. * @param strScreenClass The class of the new screen. * @param itsLocation The location of the new screen. * @param screenParent The parent of the new screen. * @param iDisplayFieldDesc Display the field desc? * @param initScreen TODO * @return The new screen. */ public static BaseScreen makeNewScreen(String strScreenClass, ScreenLocation itsLocation, BasePanel screenParent, int iDisplayFieldDesc, Map<String, Object> properties, boolean initScreen) { BaseScreen screen = (BaseScreen)ClassServiceUtility.getClassService().makeObjectFromClassName(strScreenClass); if (screen != null) { BaseApplet applet = null; if (screenParent.getTask() instanceof BaseApplet) applet = (BaseApplet)screenParent.getTask(); if (initScreen) { Cursor oldCursor = null; if (applet != null) oldCursor = applet.setStatus(Cursor.WAIT_CURSOR, applet, null); screen.init(null, itsLocation, screenParent, null, iDisplayFieldDesc, properties); if (applet != null) applet.setStatus(0, applet, oldCursor); } } return screen; } /**
public static BaseScreen createScreenFromClassName(String strScreenClass, Record recHeader, Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { RecordOwner recordOwner = null; if (record != null) recordOwner = Utility.getRecordOwner(record); else recordOwner = Utility.getRecordOwner(recHeader); if (recordOwner != null) if (recordOwner.getTask().getApplication().getSystemRecordOwner() instanceof RecordOwner) recordOwner = (RecordOwner)recordOwner.getTask().getApplication().getSystemRecordOwner(); strScreenClass = ClassFactory.fixClassName(strScreenClass, recordOwner); BaseScreen screen = BaseScreen.makeNewScreen(strScreenClass, itsLocation, parentScreen, iDisplayFieldDesc, properties, false); if (screen instanceof DetailGridScreen) // Always ((DetailGridScreen)screen).init(recHeader, record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); else { screen.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); Utility.getLogger().warning("Attempt to create a detail screen for: " + strScreenClass); } return screen; } /**