Interface
caplin.trading.service

TOBOUserServiceListener

The TOBOUserServiceListener is the interface designed to be implemented by listeners of the caplin.trading.service.TOBOUserService. It consists of all the callbacks triggered by the ToboUserService to notify listeners when new TOBO permissions are received or when the TOBO user and account are changed.

Constructor Summary

Attributes Name and Description
caplin.trading.service.TOBOUserServiceListener()

The TOBOUserServiceListener interface — this should never be constructed.

Method Summary

Attributes Name and Description
void onLockChanged(Boolean bLocked)

This method is called when the selected TOBO user/account can or cannot be changed due to an ongoing trade or the connection to the server being down.

void onTOBOAccountChanged(String sAccount)

This method is called when there is a change in the TOBO user's account being used by the logged-in user to trade on behalf of the selected TOBO user.

void onTOBOAccountListChanged(Array pAccountList)

This method is called when there is a change in the list of the currently selected TOBO user's accounts that the logged-in user can use to trade on behalf of the selected TOBO user.

void onTOBOUserChanged(String sUser)

This method is called when there is a change in the TOBO user whom the logged-in user is trading on behalf of.

void onTOBOUserListChanged(Array pUserList)

This method is called when there is a change in the list of TOBO users which the logged-in user can trade on behalf of.

void onUserTypeChanged(String sUserType)

This method is called when the type of the logged-in user is changed.

Constructor Detail

caplin.trading.service.TOBOUserServiceListener()

The TOBOUserServiceListener interface — this should never be constructed.

Method Detail

void onLockChanged(Boolean bLocked)

This method is called when the selected TOBO user/account can or cannot be changed due to an ongoing trade or the connection to the server being down.

Parameters
Boolean bLocked True/False.

void onTOBOAccountChanged(String sAccount)

This method is called when there is a change in the TOBO user's account being used by the logged-in user to trade on behalf of the selected TOBO user.

Parameters
String sAccount The account name.

void onTOBOAccountListChanged(Array pAccountList)

This method is called when there is a change in the list of the currently selected TOBO user's accounts that the logged-in user can use to trade on behalf of the selected TOBO user.

Parameters
Array pAccountList A String array containing the new list of accounts.

void onTOBOUserChanged(String sUser)

This method is called when there is a change in the TOBO user whom the logged-in user is trading on behalf of.

Parameters
String sUser The TOBO user's userName.

void onTOBOUserListChanged(Array pUserList)

This method is called when there is a change in the list of TOBO users which the logged-in user can trade on behalf of.

Parameters
Array pUserList A String array containing the new list of users.

void onUserTypeChanged(String sUserType)

This method is called when the type of the logged-in user is changed.

Parameters
String sUserType The user type.