/** * Process the "Login" toolbar command. * @return true if successful. */ public boolean onChangePassword() { Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this); this.removeRecord(record); BasePanel parentScreen = this.getParentScreen(); ScreenLocation itsLocation = this.getScreenLocation(); this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Map<String,Object> properties = null; this.free(); int docMode = record.commandToDocType(UserInfoModel.PASSWORD_CHANGE_SCREEN); record.makeScreen(itsLocation, parentScreen, docMode, properties); return true; // Should always be successful } /**
/** * Display the "Logon" screen. * @return true if successful. */ public boolean onLogon() { BasePanel parentScreen = this.getParentScreen(); ScreenLocation itsLocation = this.getScreenLocation(); parentScreen.popHistory(1, false); parentScreen.pushHistory(this.getScreenURL(), false); // Update the history to my current state. this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Converter fieldConverter = null; int iDisplayFieldDesc = 0; Map<String,Object> properties = null; this.free(); new UserLoginScreen(null, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); return true; } /**
/** * Process the "Settings" toolbar command. * @return true if successful. */ public boolean onChangeSettings() { Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this); this.removeRecord(record); BasePanel parentScreen = this.getParentScreen(); ScreenLocation itsLocation = this.getScreenLocation(); this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Map<String,Object> properties = null; this.free(); int docMode = record.commandToDocType(UserInfoModel.PREFERENCES_SCREEN); record.makeScreen(itsLocation, parentScreen, docMode, properties); return true; // Should always be successful } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { BaseField field = this.getOwner(); int iScreenNo = (int)field.getValue(); Record screenRecord = field.getRecord(); BaseScreen screen = (BaseScreen)screenRecord.getRecordOwner(); BasePanel parentScreen = screen.getParentScreen(); boolean bUseSameWindow = true; ScreenLocation itsLocation = screen.getScreenLocation(); screen.removeRecord(screenRecord); screen.free(); // Remove this screen parentScreen.popHistory(1, false); // Don't go back this.getSubScreen(screenRecord, itsLocation, parentScreen, null, iScreenNo); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * Display the "Logon" screen. * @return true if successful. */ public boolean onLogon() { Record record = Record.makeRecordFromClassName(UserInfoModel.THICK_CLASS, this); this.removeRecord(record); BasePanel parentScreen = this.getParentScreen(); ScreenLocation itsLocation = this.getScreenLocation(); parentScreen.popHistory(1, false); parentScreen.pushHistory(this.getScreenURL(), false); // Update the history to my current state. this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Map<String,Object> properties = null; this.free(); int docMode = record.commandToDocType(UserInfoModel.LOGIN_SCREEN); record.makeScreen(itsLocation, parentScreen, docMode, properties); return true; } /**
if ((iCommandOptions & ScreenConstants.USE_NEW_WINDOW) == ScreenConstants.USE_SAME_WINDOW) // Use same window itsLocation = screen.getScreenLocation(); screen.free();