Package edu.harvard.fas.zfeledy.fiximulator.core

Examples of edu.harvard.fas.zfeledy.fiximulator.core.Order


private void replaceRejectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_replaceRejectButtonActionPerformed
    int row = orderTable.getSelectedRow();
    // if no rows are selected
    if ( row != -1 ) {
        row = orderTable.convertRowIndexToModel(row);
        Order order = FIXimulator.getApplication().getOrders().getOrder(row);
        if ( order.isReceivedReplace() ||
                order.getStatus().equals("Pending Replace") ) {
            FIXimulator.getApplication().rejectCancelReplace(order, false);
        } else {
            System.out.println(
                    "Order is not in a valid status to reject replace request");
        }       
View Full Code Here


private void executeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_executeButtonActionPerformed
    int row = orderTable.getSelectedRow();
    // if no rows are selected
    if ( row != -1 ) {
        row = orderTable.convertRowIndexToModel(row);
        Order order = FIXimulator.getApplication().getOrders().getOrder(row);
        dialogExecution = new Execution(order);
        executionDialogShares.setValue(0);
        executionDialogPrice.setValue(0.0);
        executionDialog.pack();
        executionDialog.setVisible(true);
View Full Code Here

    public int getRowCount() {
        return orders.getCount();
    }

    public Object getValueAt(int row, int column) {
        Order order = orders.getOrder(row);
        if (column == 0) return order.getID();       
        if (column == 1) return order.getStatus();
        if (column == 2) return order.getSide();
        if (column == 3) return order.getQuantity();
        if (column == 4) return order.getSymbol();
        if (column == 5) return order.getType();
        if (column == 6) return order.getLimit();
        if (column == 7) return order.getTif();
        if (column == 8) return order.getExecuted();
        if (column == 9) return order.getOpen();
        if (column == 10) return order.getAvgPx();
        if (column == 11) return order.getClientID();
        if (column == 12) return order.getOrigClientID();
        return new Object();
    }
View Full Code Here

TOP

Related Classes of edu.harvard.fas.zfeledy.fiximulator.core.Order

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.