EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// ---------------------------
// <decimal1>.AfterValueChange
// ---------------------------
if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_decimal1)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getResultMoney().setValue(this.getDecimal1()+this.getDecimal2().doubleValue());
this.setResultDouble(this.getDecimal1()+this.getDecimal2().doubleValue());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------------
// <decimal2>.AfterValueChange
// ---------------------------
else if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_decimal2)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getResultMoney().setValue(this.getDecimal1()+this.getDecimal2().doubleValue());
this.setResultDouble(this.getDecimal1()+this.getDecimal2().doubleValue());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------------------------------
// <ArrayTester[*].ValidatingField>.AfterValueChange
// -------------------------------------------------
else if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_ArrayTesterArray_ValidatingField)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
int row = TableRow.get(this.getqq_ArrayTester());
this.setRowAtStart(row);
if (row > 0) {
// Simulate some complex validation
Task.delay(1000);
TextData aField = new TextData(this.getArrayTester().get(row-1).getValidatingField());
if (aField.getActualSize() == 0 || !("*".equals(aField.copyRange(aField.getActualSize()-1).getValue()))) {
WindowManager.messageDialog(this, "Must end with a *", 1, 50);
UIutils.purgeEvents();
}
this.setRowAtEnd(TableRow.get(this.getqq_ArrayTester()));
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------------------
// self.<ArrayTester[*].ValidateButton>.Click
// ------------------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ArrayTesterArray_ValidateButton)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.setRowAtStart(TableRow.get(this.getqq_ArrayTester()));
this.setRowAtEnd(TableRow.get(this.getqq_ArrayTester()));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------
// task.Shutdown
// -------------
else if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================