com.oanda.fxtrade.api
Interface FXEventManager


public interface FXEventManager

The FXEventManager class keeps track of a set of FXEvents of a particular type, handling their registration, notification, and unregistration.


Method Summary
 boolean add(FXEvent e)
          Add an FXEvent to this FXEventManager, to be notified of incoming FXEventInfos
 java.util.Vector<? extends FXEvent> getEvents()
          Gets the list of events currently registered to this FXEventManager
 boolean remove(FXEvent e)
          Remove an FXEvent from this FXEventManager, denying further notifications
 

Method Detail

add

boolean add(FXEvent e)
Add an FXEvent to this FXEventManager, to be notified of incoming FXEventInfos

Parameters:
e - The FXEvent to add
Returns:
true if the event was added successfully, false if the event was not added due to it already being present in the manager

remove

boolean remove(FXEvent e)
Remove an FXEvent from this FXEventManager, denying further notifications

Parameters:
e - The FXEvent to remove
Returns:
true if the event was removed successfully, false if it was not removed due to it not being in the manager

getEvents

java.util.Vector<? extends FXEvent> getEvents()
Gets the list of events currently registered to this FXEventManager

Returns:
A Vector containing all the events currently in the manager


Copyright © 2005 OANDA Corporation. All Rights Reserved.