Client behavior implementation to show the suggestedItems in a dropdown for editable input components. isSmartListEnabled - indicates whether smartList is enabled maxSuggestedItems - maxSuggestedItems configured isLOVComponent - indicates whether the component associated is lov component
Method Summary
|
private static Object |
_addMoreLink(Object ownerDoc, Object ulElement, Object clientId, Object isSmartList, Object maxSuggestedItems, Object submittedValue, Object laf)
-
Convenience funtion to add the more link as the last child to ulElement parameter
|
private static Object |
_adjustForScrollBars(Object ulElement)
|
private Object |
_autoSuggest(Object component)
|
private Object |
_cacheSuggestedItems(Object submittedValue, Object suggestedItems)
|
private Object |
_cancelSmartListTimer()
-
Cancels the smart list timer if the timer is not fired.
|
private Object |
_cancelSuggestTimer()
-
Cancels the _timerId when the blur event is fired.
|
private Object |
_clearCache()
|
private Object |
_clearSuggestedItemsCache()
|
private static Object |
_createPopupContent(Object component, Object clientId, Object ownerDoc, Object agent)
-
Convenience funtion to create the skeleton content of the popup
|
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 |
_fireKeyDown(Object event)
-
Handles the keyDown event.
|
private Object |
_fireKeyUp(Object componentEvent)
-
Handler for the keyUp event.
|
private Object |
_fireMouseDown(Object componentEvent)
-
Handler for the mouse down 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 Object |
_getItemChildOfTagName(Object item, Object tagName)
-
Return the first child element if it exists and if its tag name matches the specified value.
|
private Object |
_getMoreLinkIfApplicable(Object item)
|
private Object |
_getSuggestedItemsFromCache(Object submittedValue)
|
protected Object |
Init(Object isSmartListEnabled, Object maxSuggestedItems, Object isLOVComponent)
-
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 |
_isBusyIndicator(Object item)
|
private Object |
_isItemSeparator(Object item)
|
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, Object maxSuggestedItems, Object isLOVComponent, Object requestId)
-
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 |
_showDropDown(Object component, Object peer, Object clientId, Object ulElement)
-
Convenience funtion to show the popup
|
private static Object |
_showPopup(Object component, Object submittedValue, Object clientId, Object suggestedItems, Object isSmartList, Object maxSuggestedItems, Object isLOVComponent)
-
Constructs the popup content dom from the suggestedItems and calls the AdfRichUIPeer.showPopup() api to show the popup
|
private Object |
_updateSelectedStyle(Object liElement, Object selected)
-
Adds or removes the selected style classes for the specified LI element (and its child).
|