Source:
private void bind() { container.mousedown(new Function() { @Override public boolean f(Event e) { return containerMouseDown(e); } }); container.mouseup(new Function() { @Override public boolean f(Event e) { return containerMouseUp(e); } }); container.mouseenter(new Function() { @Override public boolean f(Event e) { mouseOnContainer = true; return false; } }); container.mouseleave(new Function() { @Override public boolean f(Event e) { mouseOnContainer = false; return false; } }); searchResults.mouseup(new Function() { @Override public boolean f(Event e) { return searchResultsMouseUp(e); } }); searchResults.mouseover(new Function() { @Override public boolean f(Event e) { return searchResultsMouseOver(e); } }); searchResults.mouseout(new Function() { @Override public boolean f(Event e) { return searchResultsMouseOut(e); } }); if (eventBus != null) { updateEventHandlerRegistration = eventBus.addHandler(UpdatedEvent.getType(), new UpdatedEvent.UpdatedHandler() { public void onUpdated(UpdatedEvent event) { update(); } }); } searchField.blur(new Function() { @Override public boolean f(Event e) { return inputBlur(e); } }); searchField.keyup(new Function() { @Override public boolean f(Event e) { return keyupChecker(e); } }); searchField.keydown(new Function() { @Override public boolean f(Event e) { return keydownChecker(e); } }); $(searchField).on("paste", new Function() { @Override public void f() { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { resultsSearch(); } }); } }); if (isMultiple) { searchChoices.click(new Function() { @Override public boolean f(Event e) { return choicesClick(e); } }); searchField.focus(new Function() { @Override public boolean f(Event e) { return inputFocus(e); } }); } else { container.click(new Function() { @Override public boolean f(Event e) { e.preventDefault(); return false; } }); } }

Target:
private void bind() { container.mousedown(new Function() { @Override public boolean f(Event e) { return containerMouseDown(e); } }); container.mouseup(new Function() { @Override public boolean f(Event e) { return containerMouseUp(e); } }); container.mouseenter(new Function() { @Override public boolean f(Event e) { mouseOnContainer = true; return false; } }); container.mouseleave(new Function() { @Override public boolean f(Event e) { mouseOnContainer = false; return false; } }); searchResults.mouseup(new Function() { @Override public boolean f(Event e) { return searchResultsMouseUp(e); } }); searchResults.mouseover(new Function() { @Override public boolean f(Event e) { return searchResultsMouseOver(e); } }); searchResults.mouseout(new Function() { @Override public boolean f(Event e) { return searchResultsMouseOut(e); } }); if (eventBus != null) { updateEventHandlerRegistration = eventBus.addHandler(UpdatedEvent.getType(), new UpdatedEvent.UpdatedHandler() { public void onUpdated(UpdatedEvent event) { update(); } }); } searchField.blur(new Function() { @Override public boolean f(Event e) { return inputBlur(e); } }); searchField.keyup(new Function() { @Override public boolean f(Event e) { return keyupChecker(e); } }); searchField.keydown(new Function() { @Override public boolean f(Event e) { return keydownChecker(e); } }); searchField.on("paste", new Function() { @Override public void f() { doSearch(); } }); if (isMultiple) { searchChoices.click(new Function() { @Override public boolean f(Event e) { return choicesClick(e); } }); searchField.focus(new Function() { @Override public boolean f(Event e) { return inputFocus(e); } }); } else { container.click(new Function() { @Override public boolean f(Event e) { e.preventDefault(); return false; } }); } }