Client behavior implementation to show the suggestedItems in a dropdown for editable input components.
Method Summary
|
private Object |
_autoSuggest(Object component)
|
private static Object |
_cacheSuggestedItems(Object submittedValue, Object suggestedItems)
|
private Object |
_cancelSmartListTimer()
-
Cancels the smart list timer if the timer is not fired.
|
public static Object |
clearBusyStatus(Object clientId)
-
The function gets called from server in response to customEvent of type _autoSuggest when the suggestedItems size is 0 to clear the busy status
|
private Object |
_clearBusyStatus(Object clientId)
-
In a case when there is a runtime exception on server while executing the suggestedItems method, the busy icon stays in the input field after notifying the exception until the page is refreshed again Check the request status every half second until the busy state is removed
|
private static Object |
_clearCache()
|
private static Object |
_clearSuggestedItemsCache()
|
private Object |
_filterSmartList(Object smartList, Object submittedValue)
-
Filters the list with the starts with filter
|
private Object |
_fireBlur(Object componentEvent)
-
Handler for the blur event.
|
private Object |
_fireClick(Object componentEvent)
-
Handles the click event inside autoSuggest popup.
|
private Object |
_fireFocus(Object componentEvent)
|
private Object |
_fireKeyPress(Object event)
-
Handles the keyPress event.
|
private Object |
_fireKeyUp(Object componentEvent)
-
Handler for the keyUp event.
|
private Object |
_fireMouseIn(Object componentEvent)
-
Handles the mouse over on autoSuggest popup.
|
private Object |
_fireMouseOut(Object componentEvent)
-
Handles the mouse out inside autoSuggest popup.
|
private Object |
_getCurrentSelectedItem(Object popupContent, Object selectedIndex)
-
Gets the current highlighted item.
|
private static Object |
_getSuggestedItemsFromCache(Object submittedValue)
|
protected Object |
Init(Object isSmartListEnabled)
-
Initializes the instance.
|
protected static Object |
InitClass()
|
public Object |
initialize(Object component)
-
The initialize method is called back to notify the AdfClientBehavior that it is time to perform any required initialization work on the component.
|
private Object |
_queueAutoSuggestEvent(Object params)
-
Queues the autoSuggest event to get the suggestedItems from the server params[0] - component instance params[1] - submittedValue params[2] - targetNode
|
public static Object |
showAutoSuggestPopup(Object clientId, Object submittedValue, Object suggestedItems, Object isSmartList)
-
The function gets called from server in response to customEvent of type _autoSuggest finds the AutoSuggestBehavior instance from the component and shows the dropdown popup with the suggestedItems for smartList items, suggestedItems will be cached on the component instance suggestedItems will be cached against the submittedValue for suggestItems
|
private static Object |
_showPopup(Object component, Object clientId, Object suggestedItems)
-
Constructs the popup content dom from the suggestedItems and calls the AdfRichUIPeer.showPopup() api to show the popup
|