/** * Free. */ public void free() { super.free(); } /**
/** * Free. */ public void free() { super.free(); } /**
/** * Free. */ public void free() { super.free(); } /**
/** * Free. */ public void free() { super.free(); } /**
/** * Free. */ public void free() { super.free(); } /**
/** * Free. */ public void free() { super.free(); } /**
/** * Process the "Settings" toolbar command. * @return true if successful. */ public boolean onChangeSettings() { BasePanel screenParent = this.getParentScreen(); this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Map<String,Object> properties = null; this.free(); new UserPreferenceScreen(null, null, screenParent, null, ScreenConstants.MAINT_MODE, properties); return true; // Should always be successful } /**
/** * Process the "Login" toolbar command. * @return true if successful. */ public boolean onChangePassword() { BasePanel screenParent = this.getParentScreen(); this.finalizeThisScreen(); // Validate current control, update record, get ready to close screen. Map<String,Object> properties = null; this.free(); new UserPasswordChange(null, null, screenParent, null, ScreenConstants.MAINT_MODE, properties); return true; // Should always be successful } /**
if (strDesc.equals(strCommand)) screen.free(); screen = new UserPasswordChange(null, null, screenParent, null, 0, null); screen.setProperty(DBParams.SCREEN, UserPasswordChange.class.getName()); if (strDesc.equals(strCommand)) screen.free(); screen = new UserEntryScreen(null, null, screenParent, null, 0, null); screen.setProperty(DBParams.SCREEN, UserEntryScreen.class.getName());
/** * * @param strClassResource * @return */ public BaseScreen checkSecurity(BaseScreen screen, BasePanel parentScreen) { int iErrorCode = DBConstants.NORMAL_RETURN; if (screen != null) iErrorCode = screen.checkSecurity(); if (iErrorCode == Constants.READ_ACCESS) { screen.setEditing(false); screen.setAppending(false); iErrorCode = DBConstants.NORMAL_RETURN; } if (iErrorCode == DBConstants.NORMAL_RETURN) return screen; // Good, access allowed else { if (screen != null) screen.free(); return this.getSecurityScreen(iErrorCode, parentScreen); // Create and return the login or error screen } } /**
screen.free(); screen = null;
if (strDesc.equals(strCommand)) screen.free(); screen = new UserEntryScreen(null, null, screenParent, null, 0, null); screen.setProperty(DBParams.SCREEN, UserEntryScreen.class.getName());
/** * 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 } /**
/** * 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 } /**
/** * 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; } /**
/** * 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 (!(this instanceof MenuScreen)) this.free(); new MenuScreen(null, null, screenParent, null, ScreenConstants.MAINT_MODE, properties);
if (!(this instanceof MenuScreen)) this.free(); new MenuScreen(null, null, screenParent, null, ScreenConstants.MAINT_MODE, properties);