Class
caplin.fx.presenter

CurrencyPairAutoCompleteProvider

Provides a set of currency pairs to be used in conjunction with a caplin.presenter.node.AutoCompleteSelectionField

Constructor Summary

Attributes Name and Description
caplin.fx.presenter.CurrencyPairAutoCompleteProvider()

Method Summary

Attributes Name and Description
void destroy()

Destroys this class and cleans up any listeners that it may be using.

void getList(String sTerm, Function fCallback)

Provides the callback with a list of currency pairs that match the sTerm.

boolean isValidOption(String sOption)

Returns True if the specified option is a valid and selectable option.

Constructor Detail

caplin.fx.presenter.CurrencyPairAutoCompleteProvider()

See
caplin.fx.services.CurrencyPairService
caplin.presenter.node.AutoCompleteSeletionField

Method Detail

void destroy()

Destroys this class and cleans up any listeners that it may be using.

void getList(String sTerm, Function fCallback)

Provides the callback with a list of currency pairs that match the sTerm. Note that the sTerm will be used in a "term*" pattern.

Parameters
String sTerm The term to search.
Function fCallback The callback to provide the array of found currency pairs.

boolean isValidOption(String sOption)

Returns True if the specified option is a valid and selectable option.

Parameters
String sOption The option to check.
Returns
True if the option is selectable, false otherwise.