I have a custom Oracle with objects to go to the tooltip. Then I need to return the object when it is selected from the tooltip.
public HandlerRegistration addSelectionHandler(SelectionHandler<SuggestOracle.Suggestion> handler)
The problem is that I have no suggestion. I have a "CustomSuggestion". I read the API, and I'm trying to write a Custom SuggestBox that implements the HasSelectionHandlers interface, but I cannot, because SuggestBox has an interface implementation. I get an error message:
The interface HasSelectionHandlers cannot be implemented more than once with different arguments: HasSelectionHandlers<SuggestOracle.Suggestion> and HasSelectionHandlers<CustomSuggestion>
Could you help me? Sorry for my bad english.
source
share