Interface EditStrategyListener
public interface EditStrategyListener
A EditStrategyListener instance will be notified of incoming client
events for editing the strategy.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClientClose
(ClientCloseEvent clientCloseEvent) Called when the client has finished making all the edits they want to the strategy.void
onEditOpen
(EditOpenEvent event) Called when the requests to edit a strategy.void
Called when the client request to save the edits they have made to the strategy.void
onSaveFailed
(FailureType failureType) Called when the user has submitted a save request to edit an order but the request failed.void
Callback for when the trade is closed
-
Method Details
-
onEditOpen
Called when the requests to edit a strategy.
Typically this is the when Implementations should lock the strategy.
- Parameters:
event
- The EditOpen event
-
onSave
Called when the client request to save the edits they have made to the strategy.
- Parameters:
event
- The Save event
-
onSaveFailed
Called when the user has submitted a save request to edit an order but the request failed.
Any locks on orders that are being edited should be released at this point. The trademodel has moved the EditOrder into the error state.
- Parameters:
failureType
- The Enum describing what caused the failure
-
onClientClose
Called when the client has finished making all the edits they want to the strategy.
Any Strategies or Orders that have been locked should be unlocked.
- Parameters:
clientCloseEvent
- The ClientCloseEvent
-
onTradeClosed
void onTradeClosed()Callback for when the trade is closed
-