org.kuali.student.common.ui.client.widgets.suggestbox
Class SearchSuggestOracle

java.lang.Object
  extended by com.google.gwt.user.client.ui.SuggestOracle
      extended by org.kuali.student.common.ui.client.widgets.suggestbox.IdableSuggestOracle
          extended by org.kuali.student.common.ui.client.widgets.suggestbox.SearchSuggestOracle

public class SearchSuggestOracle
extends IdableSuggestOracle


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.student.common.ui.client.widgets.suggestbox.IdableSuggestOracle
IdableSuggestOracle.IdableSuggestion
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.SuggestOracle
com.google.gwt.user.client.ui.SuggestOracle.Callback, com.google.gwt.user.client.ui.SuggestOracle.Request, com.google.gwt.user.client.ui.SuggestOracle.Response, com.google.gwt.user.client.ui.SuggestOracle.Suggestion
 
Field Summary
private  List<SearchParam> additionalParams
           
private  CachingSearchService cachingSearchService
           
private  com.google.gwt.user.client.ui.SuggestOracle.Callback currentCallback
           
private  List<IdableSuggestOracle.IdableSuggestion> lastSuggestions
           
private  LoadingDiv loading
           
private  LookupMetadata lookupMetaData
           
private  com.google.gwt.user.client.ui.SuggestOracle.Callback pendingCallback
           
private  com.google.gwt.user.client.ui.SuggestOracle.Request pendingRequest
           
private  String resultDisplayKey
           
private  String resultIdKey
           
private  String resultSortKey
           
private  List<Callback<IdableSuggestOracle.IdableSuggestion>> searchCompletedCallbacks
           
private  String searchIdKey
           
private  SearchRpcServiceAsync searchService
           
private  String searchTextKey
           
private  String searchTypeKey
           
private  com.google.gwt.user.client.ui.HasText textWidget
           
private  com.google.gwt.user.client.ui.SuggestOracle.Callback wrappedCallback
           
 
Constructor Summary
SearchSuggestOracle(LookupMetadata lookupMetadata)
           
SearchSuggestOracle(String searchTypeKey, String searchTextKey, String searchIdKey, String resultIdKey, String resultDisplayKey)
          Deprecated.  
 
Method Summary
 void addSearchCompletedCallback(Callback<IdableSuggestOracle.IdableSuggestion> callback)
           
private  SearchRequest buildSearchRequest(String query, String searchId)
           
private  SearchRequest buildSearchRequestById(String query, String searchId)
           
private  SearchParam createParam(String key, String value)
           
 void getSuggestionByIdSearch(String id, Callback<IdableSuggestOracle.IdableSuggestion> callback)
           
 IdableSuggestOracle.IdableSuggestion getSuggestionByText(String text)
           
 boolean isDisplayStringHTML()
           
 void requestSuggestions(com.google.gwt.user.client.ui.SuggestOracle.Request request, com.google.gwt.user.client.ui.SuggestOracle.Callback callback)
           
 void sendRequest(com.google.gwt.user.client.ui.SuggestOracle.Request request, com.google.gwt.user.client.ui.SuggestOracle.Callback callback)
           
 void setAdditionalSearchParams(List<SearchParam> params)
           
 void setTextWidget(com.google.gwt.user.client.ui.HasText widget)
           
 
Methods inherited from class com.google.gwt.user.client.ui.SuggestOracle
requestDefaultSuggestions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchTypeKey

private String searchTypeKey

searchIdKey

private String searchIdKey

searchTextKey

private String searchTextKey

resultIdKey

private String resultIdKey

currentCallback

private com.google.gwt.user.client.ui.SuggestOracle.Callback currentCallback

pendingRequest

private com.google.gwt.user.client.ui.SuggestOracle.Request pendingRequest

pendingCallback

private com.google.gwt.user.client.ui.SuggestOracle.Callback pendingCallback

textWidget

private com.google.gwt.user.client.ui.HasText textWidget

resultDisplayKey

private String resultDisplayKey

resultSortKey

private String resultSortKey

additionalParams

private List<SearchParam> additionalParams

lastSuggestions

private List<IdableSuggestOracle.IdableSuggestion> lastSuggestions

lookupMetaData

private LookupMetadata lookupMetaData

cachingSearchService

private CachingSearchService cachingSearchService

searchService

private SearchRpcServiceAsync searchService

searchCompletedCallbacks

private List<Callback<IdableSuggestOracle.IdableSuggestion>> searchCompletedCallbacks

loading

private LoadingDiv loading

wrappedCallback

private com.google.gwt.user.client.ui.SuggestOracle.Callback wrappedCallback
Constructor Detail

SearchSuggestOracle

public SearchSuggestOracle(String searchTypeKey,
                           String searchTextKey,
                           String searchIdKey,
                           String resultIdKey,
                           String resultDisplayKey)
Deprecated. 

Parameters:
searchTypeKey - the type to be search on
searchTextKey - the column/key that to search on
idKey - the column/key that is the primary key for this type

SearchSuggestOracle

public SearchSuggestOracle(LookupMetadata lookupMetadata)
Method Detail

setAdditionalSearchParams

public void setAdditionalSearchParams(List<SearchParam> params)

requestSuggestions

public void requestSuggestions(com.google.gwt.user.client.ui.SuggestOracle.Request request,
                               com.google.gwt.user.client.ui.SuggestOracle.Callback callback)
Specified by:
requestSuggestions in class com.google.gwt.user.client.ui.SuggestOracle

buildSearchRequest

private SearchRequest buildSearchRequest(String query,
                                         String searchId)

buildSearchRequestById

private SearchRequest buildSearchRequestById(String query,
                                             String searchId)

createParam

private SearchParam createParam(String key,
                                String value)

sendRequest

public void sendRequest(com.google.gwt.user.client.ui.SuggestOracle.Request request,
                        com.google.gwt.user.client.ui.SuggestOracle.Callback callback)

isDisplayStringHTML

public boolean isDisplayStringHTML()
Overrides:
isDisplayStringHTML in class com.google.gwt.user.client.ui.SuggestOracle

getSuggestionByText

public IdableSuggestOracle.IdableSuggestion getSuggestionByText(String text)
Specified by:
getSuggestionByText in class IdableSuggestOracle

setTextWidget

public void setTextWidget(com.google.gwt.user.client.ui.HasText widget)

getSuggestionByIdSearch

public void getSuggestionByIdSearch(String id,
                                    Callback<IdableSuggestOracle.IdableSuggestion> callback)
Specified by:
getSuggestionByIdSearch in class IdableSuggestOracle

addSearchCompletedCallback

public void addSearchCompletedCallback(Callback<IdableSuggestOracle.IdableSuggestion> callback)
Specified by:
addSearchCompletedCallback in class IdableSuggestOracle


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.