public class

SuggestionEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.google.gwt.user.client.ui.SuggestionEvent

Class Overview

Event object containing information about the selection of a SuggestOracle.Suggestion displayed by a SuggestBox.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
SuggestionEvent(SuggestBox sender, SuggestOracle.Suggestion selectedSuggestion)
Public Methods
SuggestOracle.Suggestion getSelectedSuggestion()
Gets the Suggestion object for the suggestion chosen by the user.
String toString()
Returns the string representation of this event object.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public SuggestionEvent (SuggestBox sender, SuggestOracle.Suggestion selectedSuggestion)

Public Methods

public SuggestOracle.Suggestion getSelectedSuggestion ()

Gets the Suggestion object for the suggestion chosen by the user.

Returns
  • the Suggestion object for the selected suggestion

public String toString ()

Returns the string representation of this event object. The string contains the string representation of the SuggestBox from which the event originated (the source), and the string representation of the Suggestion that was selected.

Returns
  • the string representation of this event object containing the source SuggestBox and the selected Suggestion