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 java.lang.Object implements SuggestOracle.Suggestion, IsSerializable
Suggestion class forMultiWordSuggestOracle.
-
-
Constructor Summary
Constructors Constructor Description MultiWordSuggestion()Constructor used by RPC.MultiWordSuggestion(java.lang.String replacementString, java.lang.String displayString)Constructor forMultiWordSuggestion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayString()Gets the display string associated with this suggestion.java.lang.StringgetReplacementString()Gets the replacement string associated with this suggestion.
-
-
-
Constructor Detail
-
MultiWordSuggestion
public MultiWordSuggestion()
Constructor used by RPC.
-
MultiWordSuggestion
public MultiWordSuggestion(java.lang.String replacementString, java.lang.String displayString)Constructor forMultiWordSuggestion.- Parameters:
replacementString- the string to enter into the SuggestBox's text box if the suggestion is chosendisplayString- the display string
-
-
Method Detail
-
getDisplayString
public java.lang.String getDisplayString()
Description copied from interface:SuggestOracle.SuggestionGets the display string associated with this suggestion. The interpretation of the display string depends upon the value of its oracle'sSuggestOracle.isDisplayStringHTML().- Specified by:
getDisplayStringin interfaceSuggestOracle.Suggestion- Returns:
- the display string for this suggestion
-
getReplacementString
public java.lang.String getReplacementString()
Description copied from interface:SuggestOracle.SuggestionGets 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:
getReplacementStringin interfaceSuggestOracle.Suggestion- Returns:
- the string to be entered into the SuggestBox's text box when this suggestion is selected
-
-