// ----------------------
else if (qq_currentEvent.isEvent(TradeMgr_OrderProcessed_getInstance)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Order theProcessedOrder = qq_currentEvent.getParam("pOrder");
if (this.getOrderList() != null) {
for (Order row : this.getOrderList()) {
if (row.getOrderID() == theProcessedOrder.getOrderID()) {
// TODO [1037,Major]: If you are deleting a row inside a loop, use the Iterator in place of the array
this.getOrderList().remove(row);
}
}
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------
// TradeSO.NewOrderAdded
// ---------------------
else if (qq_currentEvent.isEvent(TradeMgr_NewOrderAdded_getInstance)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Order theNewOrder = qq_currentEvent.getParam("pNewOrder");
this.getOrderList().add(theNewOrder);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// <ViewHoldingsBtn>.ObjectDrop
// ----------------------------
else if (qq_currentEvent.isEvent(PushButton_ObjectDrop_getqq_ViewHoldingsBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent theDroppedWidget = qq_currentEvent.getParam("sourceField");
int rownum = 0;
rownum = TableRow.get(this.getqq_OrderList());
CustomerWindow customerWin = new CustomerWindow();
customerWin.setUsage(Constants.WU_VIEW);
customerWin.display(this.getOrderList().get(rownum-1).getCustomerName());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------
// <ViewHoldingsBtn>.Click
// -----------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ViewHoldingsBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
//self.Window.MessageDialog(MessageText='View Holdings not yet implemented',
// MessageType=MT_INFO);
CustomerWindow customerWin = new CustomerWindow();
customerWin.display(this.getTraderName());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------
// <MakeTradeBtn>.Click
// --------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_MakeTradeBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
//self.Window.MessageDialog(MessageText='Make Trade not yet implemented',
// MessageType=MT_INFO);
try {
Order buyOrder = null, sellOrder = null;
int tradeQuantity = 0;
float tradePrice = 0;
// ------------------------------------
// Parameters for call to ValidateMatch