Package com.google.gwt.user.client.ui
Class MultiWordSuggestOracle.MultiWordSuggestion
java.lang.Object
com.google.gwt.user.client.ui.MultiWordSuggestOracle.MultiWordSuggestion
- All Implemented Interfaces:
IsSerializable
,SuggestOracle.Suggestion
- Enclosing class:
MultiWordSuggestOracle
public static class MultiWordSuggestOracle.MultiWordSuggestion
extends Object
implements SuggestOracle.Suggestion, IsSerializable
Suggestion class for
MultiWordSuggestOracle
.-
Constructor Summary
ConstructorDescriptionConstructor used by RPC.MultiWordSuggestion
(String replacementString, String displayString) Constructor forMultiWordSuggestion
. -
Method Summary
Modifier and TypeMethodDescriptionGets the display string associated with this suggestion.Gets the replacement string associated with this suggestion.
-
Constructor Details
-
MultiWordSuggestion
public MultiWordSuggestion()Constructor used by RPC. -
MultiWordSuggestion
Constructor forMultiWordSuggestion
.- Parameters:
replacementString
- the string to enter into the SuggestBox's text box if the suggestion is chosendisplayString
- the display string
-
-
Method Details
-
getDisplayString
Description copied from interface:SuggestOracle.Suggestion
Gets the display string associated with this suggestion. The interpretation of the display string depends upon the value of its oracle'sSuggestOracle.isDisplayStringHTML()
.- Specified by:
getDisplayString
in interfaceSuggestOracle.Suggestion
- Returns:
- the display string for this suggestion
-
getReplacementString
Description copied from interface:SuggestOracle.Suggestion
Gets the replacement string associated with this suggestion. When this suggestion is selected, the replacement string will be entered into the SuggestBox's text box.- Specified by:
getReplacementString
in interfaceSuggestOracle.Suggestion
- Returns:
- the string to be entered into the SuggestBox's text box when this suggestion is selected
-