Used by InputSearch's peer as the datastructure for the displayedSuggestions.
The class combines multiple AdfSuggestionMap instances and provides
an abstraction as if the user is working with a single larged merged
AdfSuggestionMap instance.
In addition this class provides methods to help render and manage the virtual
rendering provided by AdfInputSearchScrollManager by providing abstractions
to treat the sectional headers as members of the suggestionMap
itself.
This is a subclass of AdfSuggestionMap.
Method Summary |
public Object |
addSuggestionMap(AdfSuggestionMap suggestionMap, Object section)
Adds a new instance of AdfSuggestionMap and its source info to the chain.
|
public Object |
at(Object chainedIndex)
Resolves the chainedIndex to appropriate index within a chain member
and returns the suggestionMap item.
|
public Object |
filter(Object callback, Object thisArg)
Array.filter equivalent method for this chained suggestionMap.
|
public Object |
forEach(Object callback, Object thisArg)
Method to iterate over all the map items as members of a single
map.
|
public Object |
get(Object key)
Iterate over all the chained AdfSuggestionMap instances
and invoke get on each chained member repeatedly until the map
item is found
|
public Object |
getArray()
Invoke with caution as this method creates a new array by combining
the map items of all the chained maps.
|
public Object |
getChainedIndex(Object inclusiveIndex)
Returns the chained index, give inclusive header index.
|
private Object |
_getChainNoAndIndex(Object inclusiveIndex)
Resolves the header inclusive index to appropriate chain member and the index within
the chain member.
|
public Object |
getInclusiveHeaderIndex(Object chainedIndex)
Gets the header inclusive index from the chainedIndex (i.e.
|
public Object |
getSuggestionMap(Object index)
Returns the AdfSuggestionMap instance at the given index of the chain
|
public Object |
inclusiveHeaderForEach(Object inclusiveHeaderStartIndex, Object inclusiveHeaderEndIndex, Object callback, Object thisArg)
forEach equivalent accounting for headers of searchSection/suggestionSection suggestion map
|
protected Object |
Init()
The class internally manages the total length of the chained
suggestionMap, with and without header accounted for.
|
protected static Object |
InitClass()
|
private Object |
_shouldCountSectionHeader(Object index)
A section will render or has a header if the section's suggestionMap is non empty
and has a header configured for the section.
|
public Object |
updateSuggestionMap(Object index, Object suggestionMap)
Update the AdfSuggestionMap instance at the given index
|