/** * Free the resources. */ public void free() { BasePanel parentScreen = this.getParentScreen(); super.free(); if (parentScreen instanceof FrameScreen) parentScreen.free(); // Make sure I remove my frame } /**
/** * Override this to add your tool buttons. */ public void setupStartSFields() { new SCannedBox(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, MenuConstants.BACK); } /**
/** * Get the converter for this column. * This method is only used by FlexTreeHandler! * @param iSelectIndex The field to return. * @return The converter at this location. */ public Converter getTreeField(int iSelectIndex) { return this.getSField(iSelectIndex).getConverter(); } }
/** * Set this control's value as it was submitted by the HTML post operation. * @return The value the field was set to. */ public String getSFieldProperty(String strFieldName) { return this.getParentScreen().getProperty(strFieldName); } /**
/** * Set up this default screen field (default = set them all up for the current record). * @param converter The converter to creat a default screen field for. */ public Object addColumn(Converter converter) { return new SEditText(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), this, converter, ScreenConstants.DEFAULT_DISPLAY); } /**
/** * Move the focus to the next logical field. * @param sfCurrent The currently selected screen field. * @param iSelectField The screen field to select (next/prev/first/last). */ public void selectField(ScreenField sfCurrent, int iSelectField) { ScreenField sField = this.getComponentAfter(sfCurrent, iSelectField); if (sField != null) sField.requestFocus(); } /**
/** * Move Record Command. * @return True if successful. */ public boolean onMove(int nIDMoveCommand) { boolean flag = super.onMove(nIDMoveCommand); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Add New Record Command. * @return True if successful. */ public boolean onAdd() { boolean flag = super.onAdd(); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Cancel Record Command. * @return True if successful. */ public boolean onRefresh() { boolean flag = super.onRefresh(); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Delete Record Command. * @return True if successful. */ public boolean onDelete() { boolean flag = super.onDelete(); this.selectField(null, DBConstants.SELECT_FIRST_FIELD); return flag; } /**
/** * Override this to add your tool buttons. */ public void setupEndSFields() { new SCannedBox(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST_BUTTON_WITH_GAP, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, MenuConstants.HELP); } /**
/** * Get the converter for this column. * This method is only used by FlexTreeHandler! * @param iSelectIndex The field to return. * @return The converter at this location. */ public Convert getTreeField(int iSelectIndex) { return this.getSField(iSelectIndex).getConverter(); } }
/** * Set up this default screen field (default = set them all up for the current record). * @param converter The converter to creat a default screen field for. */ public Object addColumn(Converter converter) { return new SEditText(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), this, converter, ScreenConstants.DEFAULT_DISPLAY); } /**
/** * Free the resources. */ public void free() { BasePanel parentScreen = this.getParentScreen(); super.free(); if (parentScreen instanceof FrameScreen) parentScreen.free(); // Make sure I remove my frame } /**
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); } /**
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, Vendor.MESSAGE_DETAIL_SCREEN, MenuConstants.FORMDETAIL, Vendor.MESSAGE_DETAIL_SCREEN, null); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, Vendor.MESSAGE_LOG_SCREEN, MenuConstants.FORMDETAIL, Vendor.MESSAGE_LOG_SCREEN, null); } /**
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); } /**
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, "Request History", MenuConstants.LOOKUP, "Request History", null); } /**
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, MenuConstants.FORMDETAIL, null); } /**
/** * Override this to add your tool buttons. */ public void setupEndSFields() { new SCannedBox(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST_BUTTON_WITH_GAP, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, MenuConstants.HELP); } /**