Client behavior implementation to show the suggestedItems in a dropdown for editable input components. isSmartListEnabled - indicates whether smartList is enabled minChars - Indicates minimum characters to be entered in the input field for autoSuggest panel to be displayed maxSuggestedItems - maxSuggestedItems configured isLOVComponent - indicates whether the component associated is lov component
Method Summary
|
private static Object |
_addBusyDiv(Object ownerDoc, Object ulElement, Object clientId, Object laf)
|
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 |
_addSeparator(Object ownerDoc, Object ulElement)
|
private static Object |
_addSuggestItems(Object ownerDoc, Object ulElement, Object clientId, Object suggestedItems, Object isSmartList, Object laf)
|
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 |
_convertToSelectItems(Object suggestedItems, Object selectItems)
|
private static Object |
_createPopupContent(Object component, Object clientId, Object ownerDoc, Object agent)
-
Convenience funtion to create the skeleton content of the popup
|
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 |
_firePopupClosed(Object component)
-
Invoked when the autosuggest popup is closed
|
private Object |
_firePopupOpening(Object component)
-
Invoked when the autosuggest popup is being launched
|
private Object |
_getCurrentSelectedItemId(Object contentNode)
-
Gets the current highlighted item.
|
public Object |
getSuggestedItems(Object component)
-
Returns the currently available selected items for the current input element value
|
protected Object |
Init(Object isSmartListEnabled, Object minChars, 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.
|
public static Object |
isPopupVisible(Object component, Object peer)
-
Returns true if autosuggest popup is displayed
|
private static Boolean |
_isSuggestItemOrMoreLink(HTMLElement element)
-
Determine if the element is a suggest item or More...
|
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
|
private Object |
_selectNewItem(HTMLElement contentNode, HTMLElement suggestItemsContainer, HTMLElement isFindNextItem)
-
Determines and selects a new item when Up/Down arrow key is pressed
|
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 Object |
_showDropdown(Object component, Object peer, Object clientId, Object ulElement)
-
Convenience funtion to show the popup
|
private 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 static Object |
_updateSelectedStyle(Object element, Object selected)
-
Adds or removes the selected style classes for the specified element.
|