/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(SPopupBox sPopupBox) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, null, sPopupBox); } /**
/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(GridScreen gridScreen) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, gridScreen, null); } /**
/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(GridScreen gridScreen) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, gridScreen, null); } /**
/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(GridScreenParent gridScreen) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, gridScreen, null); } /**
/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(GridComponent sPopupBox) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, null, sPopupBox); } /**
/** * Constructor. * @param gridScreen The grid screen to reselect on change. */ public FieldReSelectHandler(SPopupBox sPopupBox) { // For this to work right, the field needs a listener to re-select this file whenever it changes this(); this.init(null, null, sPopupBox); } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param gridScreen The grid screen you will be requering. * @param recGrid The grid record. */ public void init(BaseField field, GridScreen gridScreen, Record recGrid, boolean bCreateSortOrder) { m_recGrid = recGrid; m_bCreateSortOrder = bCreateSortOrder; super.init(field, gridScreen, null); m_iKeyAreaArray = new int[MAX_ARRAY_SIZE]; for (int i = 0; i < MAX_ARRAY_SIZE; i++) m_iKeyAreaArray[i] = -1; m_iNextArrayIndex = 0; } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param gridScreen The grid screen you will be requering. * @param recGrid The grid record. */ public void init(BaseField field, GridScreenParent gridScreen, Record recGrid, boolean bCreateSortOrder) { m_recGrid = recGrid; m_bCreateSortOrder = bCreateSortOrder; super.init(field, gridScreen, null); m_iKeyAreaArray = new String[MAX_ARRAY_SIZE]; for (int i = 0; i < MAX_ARRAY_SIZE; i++) m_iKeyAreaArray[i] = null; m_iNextArrayIndex = 0; } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param gridScreen The grid screen you will be requering. * @param recGrid The grid record. */ public void init(BaseField field, GridScreen gridScreen, Record recGrid, boolean bCreateSortOrder) { m_recGrid = recGrid; m_bCreateSortOrder = bCreateSortOrder; super.init(field, gridScreen, null); m_iKeyAreaArray = new int[MAX_ARRAY_SIZE]; for (int i = 0; i < MAX_ARRAY_SIZE; i++) m_iKeyAreaArray[i] = -1; m_iNextArrayIndex = 0; } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((FieldReSelectHandler)listener).init(null, m_gridScreen, m_sPopupBox); return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((FieldReSelectHandler)listener).init(null, m_gridScreen, m_sPopupBox); return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((FieldReSelectHandler)listener).init(null, m_gridScreen, m_sPopupBox); return super.syncClonedListener(field, listener, true); } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param mergeTable The parent merge record. * @param subTable The sub-record to add and remove from the parent merge record. * @param gridScreen The (optional) grid screen to requery on change. */ public void init(BaseField field, Record mergeTable, Record subTable, BaseScreen gridScreen) { super.init(field); m_gridScreen = gridScreen; m_mergeRecord = mergeTable; m_subRecord = subTable; if (subTable != null) { // Remove this listener when the file closes FileListener listener = new FileRemoveBOnCloseHandler(this); // If this closes first, this will remove FileListener subTable.addListener(listener); // Remove this if you close the file first } } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param mergeTable The parent merge record. * @param subTable The sub-record to add and remove from the parent merge record. * @param gridScreen The (optional) grid screen to requery on change. */ public void init(BaseField field, Record mergeTable, Record subTable, BaseScreen gridScreen) { super.init(field); m_gridScreen = gridScreen; m_mergeRecord = mergeTable; m_subRecord = subTable; if (subTable != null) { // Remove this listener when the file closes FileListener listener = new FileRemoveBOnCloseHandler(this); // If this closes first, this will remove FileListener subTable.addListener(listener); // Remove this if you close the file first } } /**
/** * Constructor. * @param field The basefield owner of this listener (usually null and set on setOwner()). * @param mergeTable The parent merge record. * @param subTable The sub-record to add and remove from the parent merge record. * @param gridScreen The (optional) grid screen to requery on change. */ public void init(BaseField field, Record mergeTable, Record subTable, ScreenParent gridScreen) { super.init(field); m_gridScreen = gridScreen; m_mergeRecord = mergeTable; m_subRecord = subTable; if (subTable != null) { // Remove this listener when the file closes FileListener listener = new FileRemoveBOnCloseHandler(this); // If this closes first, this will remove FileListener subTable.addListener(listener); // Remove this if you close the file first } } /**
/** * Initialize class fields. */ public void init(RequestScreen mAmRequests, GridScreen gridScreen, Request rAmRequests, RequestDetail rAmReqDetail, BundleDetail rAmBrocDetail, Brochure recBrochure, RequestInput rAmReqInput) { m_mMAmRequests = null; m_rAmBrocDetail = null; m_rAmBrochure = null; m_rAmReqDetail = null; m_rAmReqInput = null; m_rAmRequests = null; m_rAmRequests = rAmRequests; m_rAmReqDetail = rAmReqDetail; m_rAmBrocDetail = rAmBrocDetail; m_rAmBrochure = recBrochure; m_rAmReqInput = rAmReqInput; m_mMAmRequests = mAmRequests; super.init(null, gridScreen, null); // Only if the use changes the qty or bundle this.setRespondsToMode(DBConstants.INIT_MOVE, false); this.setRespondsToMode(DBConstants.READ_MOVE, false); } /**
/** * Initialize class fields. */ public void init(RequestScreen mAmRequests, GridScreen gridScreen, Request rAmRequests, RequestDetail rAmReqDetail, BundleDetail rAmBrocDetail, Brochure recBrochure, RequestInput rAmReqInput) { m_mMAmRequests = null; m_rAmBrocDetail = null; m_rAmBrochure = null; m_rAmReqDetail = null; m_rAmReqInput = null; m_rAmRequests = null; m_rAmRequests = rAmRequests; m_rAmReqDetail = rAmReqDetail; m_rAmBrocDetail = rAmBrocDetail; m_rAmBrochure = recBrochure; m_rAmReqInput = rAmReqInput; m_mMAmRequests = mAmRequests; super.init(null, gridScreen, null); // Only if the use changes the qty or bundle this.setRespondsToMode(DBConstants.INIT_MOVE, false); this.setRespondsToMode(DBConstants.READ_MOVE, false); } /**