ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------
// SaveAfterClear
// --------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this, ExpressClassWindow.cEVENT_SAVE_AFTER_CLEAR,
new EventRegistrationCallback("ExpressClassWindow_SaveAfterClear_this")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (ExpressClassWindow.this.save() != false) {
ExpressClassWindow.this.postClearResultSet();
}
//
// handle window related commands
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <CancelMC>.activate
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_CancelMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_CancelMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.quit(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmCancel().getValue());
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------
// <CloseMC>.activate
// ------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_CloseMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_CloseMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.finishUp(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmClose().getValue());
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------
// <ExitAllMC>.activate
// --------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ExitAllMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_ExitAllMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
//
// when the user selects Exit All, let the AppBroker object
// handle closing all the windows in the application,
// including this one.
//
ExpressClassWindow.this.getAppBroker().exitAll();
//
// when the user selects the Preferences command, ask the
// AppBroker to display the Preferences window.
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------------
// <PreferencesMC>.activate
// ------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_PreferencesMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_PreferencesMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.getAppBroker().preferencesDialog();
//
// Handle the result set commands
//
//
// Clear the result set
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------
// <ClearMC>.activate
// ------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ClearMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_ClearMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.clearResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmClear().getValue());
//
// Save changes
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------
// <SaveMC>.activate
// -----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_SaveMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_SaveMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.save();
//
// Insert a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <InsertMC>.activate
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_InsertMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_InsertMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.insertRecordIntoResultSet((BusinessClass)null);
//
// Delete a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <DeleteMC>.activate
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_DeleteMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_DeleteMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.deleteRecordFromResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmDelete().getValue());
//
// Perform a Search
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <SearchMC>.activate
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_SearchMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_SearchMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.search(ExpressClassWindow.this.getSearchCriteria());
//
// Set Search Mode
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------------
// <ModeMC>.afterValueChange
// -------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ModeMC(), "AfterValueChange",
new EventRegistrationCallback("MenuList_AfterValueChange_getqq_ModeMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
// Tell SelectRecord not to validate current record.
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(true);
try {
ExpressClassWindow.this.setMode(ExpressClassWindow.this.getModeMC(), ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmMode().getValue());
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(false);
}
catch (Throwable qq_ElseException) {
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(false);
throw (RuntimeException)qq_ElseException;
}
//
// Revert changes
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <RevertMC>.activate
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_RevertMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_RevertMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.revertToSaved(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmRevert().getValue(), true);
//
// Handle the scroll commands
//
//
// Scroll to First record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------
// <FirstMC>.activate
// ------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_FirstMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_FirstMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToFirst();
//
// Scroll to Last record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------
// <LastMC>.activate
// -----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_LastMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_LastMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToLast();
//
// Scroll to Next record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------
// <NextMC>.activate
// -----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_NextMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_NextMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToNext();
//
// Scroll to Previous record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------
// <PrevMC>.activate
// -----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_PrevMC(), "Activate",
new EventRegistrationCallback("MenuCommand_Activate_getqq_PrevMC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToPrev();
//
// Clear the result set
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------
// <ClearTC>.click
// ---------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ClearTC(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_ClearTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.clearResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmClear().getValue());
//
// Save changes
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------
// <SaveTC>.click
// --------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_SaveTC(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_SaveTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.save();
//
// Insert a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <InsertTC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_InsertTC(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_InsertTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.insertRecordIntoResultSet((BusinessClass)null);
//
// Delete a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <DeleteTC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_DeleteTC(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_DeleteTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.deleteRecordFromResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmDelete().getValue());
//
// Perform a Search
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <SearchTC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_SearchTC(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_SearchTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.search(ExpressClassWindow.this.getSearchCriteria());
//
// Set Search Mode
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------------
// <ModeTC>.afterValueChange
// -------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ModeTC(), "AfterValueChange",
new EventRegistrationCallback("PaletteList_AfterValueChange_getqq_ModeTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
// Tell SelectRecord not to validate current record.
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(true);
try {
ExpressClassWindow.this.setMode(ExpressClassWindow.this.getModeTC(), ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmMode().getValue());
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(false);
}
catch (Throwable qq_ElseException) {
ExpressClassWindow.this.getAppBroker().setSkipSelectRecordValidate(false);
throw (RuntimeException)qq_ElseException;
}
//
// Scroll to specific index
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------------
// <IndexTC>.afterValueChange
// --------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_IndexTC(), "AfterValueChange",
new EventRegistrationCallback("DataField_AfterValueChange_getqq_IndexTC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToIndex(ExpressClassWindow.this.getIndexTC());
//
// handle window related commands
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <CancelBC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_CancelBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_CancelBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.quit(false);
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------
// <OKBC>.click
// ------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_OKBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_OKBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.finishUp(false);
//
// Clear the result set
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------
// <ClearBC>.click
// ---------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ClearBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_ClearBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.clearResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmClear().getValue());
//
// Perform a Search
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <SearchBC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_SearchBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_SearchBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.search(ExpressClassWindow.this.getSearchCriteria());
//
// Insert a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <InsertBC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_InsertBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_InsertBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.insertRecordIntoResultSet((BusinessClass)null);
//
// Delete a record
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <DeleteBC>.click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_DeleteBC(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_DeleteBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.deleteRecordFromResultSet(ExpressClassWindow.this.getAppBroker().getPreferences().getConfirmDelete().getValue());
//
// Scroll to specific index
//
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------------
// <IndexBC>.afterValueChange
// --------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_IndexBC(), "AfterValueChange",
new EventRegistrationCallback("DataField_AfterValueChange_getqq_IndexBC")
{
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ExpressClassWindow.this.scrollToIndex(ExpressClassWindow.this.getIndexBC());
}
catch (CancelException ce) {
throw ce;
}
catch (Throwable qq_ElseException) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(ExpressClassWindow.this.getWindowName());
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 100) ) Logger.getLogger("task.part.logmgr").info(": Got Exception.");
if (ExpressClassWindow.this.getWindowIsExiting()) {
// Exception exits window if happens after user selects
// Close/Quit/Exit.
throw (RuntimeException)qq_ElseException;
}
else if (!(ExpressClassWindow.this.getIsInTestMode())) {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorMgr.showErrors(null, "Error", qq_ElseException);;
}
else {
ExpressClassWindow.this.setWindowIsExiting(false);
ErrorDesc err = (ErrorDesc)ErrorMgr.getAt(1);
if (err != null) {
Logger.getLogger("task.part.logmgr").info(err.getMessageText());
}
}
ExpressClassWindow.this.getStatusLine().getStatusText().clear();
}
// ================= End Forte Event Handler Translation =================