celeboss.data
Interface OrderNotifier

All Known Implementing Classes:
PortfolioWindow

public interface OrderNotifier

This is used as a callback for any asynchronous Order issued. A notification is invoked on the completion of an order.

Version:
1.0
Author:
bevans

Method Summary
 void buyComplete(Celebrity target, int number, java.lang.String errorMsg)
          This method is invoked when a buy order is finished.
 void sellComplete(Celebrity target, int number, java.lang.String errorMsg)
          This method is invoked when a sell order is finished.
 

Method Detail

buyComplete

public void buyComplete(Celebrity target,
                        int number,
                        java.lang.String errorMsg)
This method is invoked when a buy order is finished. If there is no error message then the order was successful. This notification does not bypass the existing PropertyChange Events of the datamodel.

Parameters:
target - Celebrity of order
number - NUmber fo shares purchased
errorMsg - Error message if problem occured.

sellComplete

public void sellComplete(Celebrity target,
                         int number,
                         java.lang.String errorMsg)
This method is invoked when a sell order is finished. If there is no error message then the order was successful. This notification does not bypass the existing PropertyChange Events of the datamodel.

Parameters:
target - Celebrity of order
number - NUmber fo shares sold
errorMsg - Error message if problem occured.