public class SearchContextController
extends DefaultWidgetController
| Modifier and Type | Field and Description |
|---|---|
protected AsSearchProviderFactory |
asSearchProviderFactory |
protected CockpitLocaleService |
cockpitLocaleService |
protected static java.lang.String |
CURRENCY_SELECTOR_ID |
protected Combobox |
currencySelector |
protected I18NService |
i18nService |
protected LabelService |
labelService |
protected static java.lang.String |
LANGUAGE_SELECTOR_ID |
protected Combobox |
languageSelector |
protected static java.lang.String |
NAVIGATION_CONTEXT_KEY |
protected static java.lang.String |
ON_VALUE_CHANGED |
protected static java.lang.String |
SEARCH_CONTEXT_KEY |
protected SessionService |
sessionService |
| Constructor and Description |
|---|
SearchContextController() |
protected static final java.lang.String LANGUAGE_SELECTOR_ID
protected static final java.lang.String CURRENCY_SELECTOR_ID
protected static final java.lang.String ON_VALUE_CHANGED
protected static final java.lang.String NAVIGATION_CONTEXT_KEY
protected static final java.lang.String SEARCH_CONTEXT_KEY
protected transient SessionService sessionService
protected transient I18NService i18nService
protected transient AsSearchProviderFactory asSearchProviderFactory
protected transient CockpitLocaleService cockpitLocaleService
protected transient LabelService labelService
protected Combobox languageSelector
protected Combobox currencySelector
public <any> getLanguagesModel()
public <any> getCurrenciesModel()
public NavigationContextData getNavigationContext()
public void setNavigationContext(NavigationContextData navigationContext)
public SearchContextData getSearchContext()
public void setSearchContext(SearchContextData searchContext)
public void updateSearchContext(NavigationContextData navigationContextData)
public void initialize(Component component)
protected void initializeSelectors()
protected void updateSelectors(SearchContextData searchContext)
protected void sendSearchContext(SearchContextData searchContext)
protected void updateLanguages(SearchContextData searchContext)
protected void updateCurrencies(SearchContextData searchContext)
public void onLanguageChanged(<any> event)
event - - the eventpublic void onCurrencyChanged(<any> event)
event - - the eventprotected java.util.List<LanguageModel> findLanguages(NavigationContextData navigationContext)
protected boolean isValidLanguage(LanguageModel language)
protected LanguageModel convertLanguage(LanguageModel source)
protected int compareLanguages(LanguageModel language1, LanguageModel language2)
protected java.util.List<CurrencyModel> findCurrencies(NavigationContextData navigationContext)
protected boolean isValidCurrency(CurrencyModel currency)
protected CurrencyModel convertCurrency(CurrencyModel source)
protected int compareCurrencies(CurrencyModel currency1, CurrencyModel currency2)
protected LanguageModel getSessionLanguage()
protected CurrencyModel getSessionCurrency()
Copyright © 2018 SAP SE. All Rights Reserved.