/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.setEditing(false); } /**
/** * Initialize class fields. */ 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); } /**
/** * Process the command. * <br />Step 1 - Process the command if possible and return true if processed. * <br />Step 2 - If I can't process, pass to all children (with me as the source). * <br />Step 3 - If children didn't process, pass to parent (with me as the source). * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop). * @param strCommand The command to process. * @param sourceSField The source screen field (to avoid echos). * @param iCommandOptions If this command creates a new screen, create in a new window? * @return true if success. */ public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if ((MenuConstants.FORMLINK.equalsIgnoreCase(strCommand)) || (MenuConstants.FORM.equalsIgnoreCase(strCommand))) return true; // Ignore these commands return super.doCommand(strCommand, sourceSField, iCommandOptions); } /**
/** * Add the navigation button(s) to the left of the grid row. */ public void addNavButtons() { new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); super.addNavButtons(); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); } /**
/** * The Field has Changed. * Reselect the grid screen. * @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). * Reselect the records. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (m_gridScreen != null) m_gridScreen.reSelectRecords(); if (m_sPopupBox != null) m_sPopupBox.reSelectRecords(); return DBConstants.NORMAL_RETURN; } }
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { super.addToolbarButtons(toolScreen); BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(AcctDetailDist.DIST_DISTRIBUTION), AcctDetailDist.DIST_DISTRIBUTION, AcctDetailDist.DIST_DISTRIBUTION, null); } /**
/** * Add the navigation button(s) to the left of the grid row. */ public void addNavButtons() { new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); super.addNavButtons(); // Next buttons will be "First!" } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); } /**
/** * The Field has Changed. * Reselect the grid screen. * @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). * Reselect the records. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (m_gridScreen != null) m_gridScreen.reSelectRecords(); if (m_sPopupBox != null) m_sPopupBox.reSelectRecords(); return DBConstants.NORMAL_RETURN; } }
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.MENU_RESOURCE, true).getString(MenuConstants.FORMDETAIL), MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); super.addToolbarButtons(toolScreen); }
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.addSubFileFilter(); } /**
/** * Initialize class fields. */ public void init(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { m_recHeader = null; super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Add the navigation button(s) to the left of the grid row. */ public void addNavButtons() { new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); super.addNavButtons(); // Next buttons will be "First!" } /**
/** * Process the command. * <br />Step 1 - Process the command if possible and return true if processed. * <br />Step 2 - If I can't process, pass to all children (with me as the source). * <br />Step 3 - If children didn't process, pass to parent (with me as the source). * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop). * @param strCommand The command to process. * @param sourceSField The source screen field (to avoid echos). * @param iCommandOptions If this command creates a new screen, create in a new window? * @return true if success. */ public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, ScreenConstants.DETAIL_MODE, true, iCommandOptions, null) != null); else return super.doCommand(strCommand, sourceSField, iCommandOptions); }
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); } /**
((GridScreen)screen).reSelectRecords(); } catch (DBException ex) { ex.printStackTrace();
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(MessageInfo.PROCESS_DETAIL_SCREEN), MenuConstants.GRID, MessageInfo.PROCESS_DETAIL_SCREEN, null); super.addToolbarButtons(toolScreen); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.addSubFileFilter(); } /**
/** * Initialize class fields. */ 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); } /**