OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.data.inputSearch
Class AdfSuggestionMap

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adfinternal.view.js.data.inputSearch.AdfSuggestionMapInterface
               |
               +--oracle.adfinternal.view.js.data.inputSearch.AdfSuggestionMap
Direct Known Subclasses:
AdfChainSuggestionsMap

public class AdfSuggestionMap
extends AdfSuggestionMapInterface
Used by InputSearch's peer. A collection of suggestions with ordering of an array along with constant time lookup of suggestion given the key (primary/value attribute).


Field Summary


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfSuggestionMap(Object array, Object suggestionMap)
Used by InputSearch's peer.

Method Summary

public Object
at(Object index)
Returns the suggestion at 'index' position in array.
private Object
_buildLookupTable()
public Object
filter(Object callback, Object thisArg)
public Object
forEach(Object callback, Object thisArg)
public Object
get(Object key)
Performs a map lookup.
public Object
getArray()

Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, Init, toDebugString, toString

Field Detail


Constructor Detail


AdfSuggestionMap

public AdfSuggestionMap(Object array,
                        Object suggestionMap)

Used by InputSearch's peer. A collection of suggestions with ordering of an array along with constant time lookup of suggestion given the key (primary/value attribute).

Parameters:
array  
suggestionMap  

Method Detail


at

public Object at(Object index)

Returns the suggestion at 'index' position in array. Note: This is not the server collection's index (index property of suggestion object)

Parameters:
index  
Return:
Object

_buildLookupTable

private Object _buildLookupTable()

Return:
Object

filter

public Object filter(Object callback,
                     Object thisArg)

Parameters:
callback  
thisArg  
Return:
Object

forEach

public Object forEach(Object callback,
                      Object thisArg)

Parameters:
callback  
thisArg  
Return:
Object

get

public Object get(Object key)

Performs a map lookup. The data type of the key is unimportant, i.e. a strict data type match is not needed while looking up for matching key.

Parameters:
key  
Return:
Object
Overrides:
AdfSuggestionMapInterface.get(Object)

getArray

public Object getArray()

Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.