Interface
caplin.presenter.node

AutoCompleteProvider

Provides an interface for a provider that can provide auto complete suggestions, typically used with an caplin.presenter.node.AutoCompleteSelectionField.

Constructor Summary

Attributes Name and Description
caplin.presenter.node.AutoCompleteProvider()

Method Summary

Attributes Name and Description
void getList(String sTerm, Function The)

Provides the callback with a list of options that match the sTerm.

boolean isValidOption(String sOption)

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

Constructor Detail

caplin.presenter.node.AutoCompleteProvider()

Method Detail

void getList(String sTerm, Function The)

Provides the callback with a list of options that match the sTerm. Note that the sTerm will be used in a 'term*' pattern.

Parameters
String sTerm The term to search.
Function The callback to provide the array of found options as the first argument.

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.