* @param browserField
* The BrowserField displayed by this applications's screen
*/
public void extendJavaScript(final BrowserField browserField)
throws Exception {
final ScriptableFunction toggleSearch = new ScriptableFunction() {
public Object invoke(final Object thiz, final Object[] args)
throws Exception {
return Boolean.FALSE;
}
};
browserField.extendScriptEngine("bb.toggleSearch", toggleSearch);
final ScriptableFunction submitSearch = new ScriptableFunction() {
public Object invoke(final Object thiz, final Object[] args)
throws Exception {
executeSearch(Integer.parseInt(args[0].toString()), args[1]
.toString());
return Boolean.FALSE;