Package com.google.gwt.user.client.ui
Class SuggestionEvent
java.lang.Object
java.util.EventObject
com.google.gwt.user.client.ui.SuggestionEvent
- All Implemented Interfaces:
Serializable
Event object containing information about the selection of a
SuggestOracle.Suggestion
displayed by a SuggestBox
.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSuggestionEvent
(SuggestBox sender, SuggestOracle.Suggestion selectedSuggestion) -
Method Summary
Modifier and TypeMethodDescriptionGets theSuggestion
object for the suggestion chosen by the user.toString()
Returns the string representation of this event object.Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
SuggestionEvent
-
-
Method Details
-
getSelectedSuggestion
Gets theSuggestion
object for the suggestion chosen by the user.- Returns:
- the
Suggestion
object for the selected suggestion
-
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.- Overrides:
toString
in classEventObject
- Returns:
- the string representation of this event object containing the source SuggestBox and the selected Suggestion
-