/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getRecord(AutoDist.AUTO_DIST_FILE).getField(AutoDist.ID).addListener(new FieldReSelectHandler(this)); } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { m_mMAmRequests.setupBrocDetail(m_rAmRequests, m_rAmReqDetail, m_rAmBrocDetail, m_rAmBrochure, m_rAmReqInput); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * 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); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getRecord(ProductSearchType.PRODUCT_SEARCH_TYPE_FILE).getField(ProductSearchType.ID).addListener(new FieldReSelectHandler(this)); } /**
/** * 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); } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { m_mMAmRequests.setupBrocDetail(m_rAmRequests, m_rAmReqDetail, m_rAmBrocDetail, m_rAmBrochure, m_rAmReqInput); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getHeaderRecord().getField(Profile.ID).addListener(new FieldReSelectHandler(this)); // Reselect on file change } /**
/** * 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); } /**
/** * The Field has Changed. * Change the key order to match this field's value. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.setupGridOrder(); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { this.setupGridOrder(); // Set the initial grid order if (m_gridScreen != null) { m_gridScreen.setConverter(this.getOwner()); // The grid screen will automatically change this field to match the key order. this.getOwner().addComponent(m_gridScreen); } } } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getRecord(ProductSearchType.PRODUCT_SEARCH_TYPE_FILE).getField(ProductSearchType.ID).addListener(new FieldReSelectHandler(this)); } /**
/** * 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); } /**
/** * The Field has Changed. * Change the key order to match this field's value. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.setupGridOrder(); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { this.setupGridOrder(); // Set the initial grid order if (m_gridScreen != null) { m_gridScreen.setConverter(this.getOwner()); // The grid screen will automatically change this field to match the key order. this.getOwner().addComponent(m_gridScreen); } } } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getHeaderRecord().getField(ApTrx.ID).addListener(new FieldReSelectHandler(this)); this.setEnabled(false); // Do not do setEdititing(false) as this will incorrectly optomize the query this.setAppending(false); } /**
/** * 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); } /**
/** * The Field has Changed. * Change the key order to match this field's value. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = this.setupGridOrder(); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; return super.fieldChanged(bDisplayOption, iMoveMode); } /**