OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.laf.dhtml.inputSearch
Class AdfSuggestionsContainer

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adfinternal.view.js.laf.dhtml.inputSearch.AdfSuggestionsContainer

public class AdfSuggestionsContainer
extends AdfObject
Suggestions container sits inside the suggestions popup of inputSearch component. Its sibiling is the toolbar facet's content handled by AdfToolbarPanel. SuggestionsContainer holds/displays either the fetching (or loading) indicator or the suggest items, which is handled by AdfSuggestionsPanel. Primarily this class exposes attach, detach and reset method for interaction from inputSearch peer.


Field Summary

private static Object
_LOADING_INDICATOR_STYLE_CLASS
private static Object
_LOADING_INDICATOR_SUB_ID
private Object
_peer
private static Object
_SUGGESTIONS_CONTAINER_PLACEHOLDER_SUB_ID
private static Object
_SUGGESTIONS_CONTAINER_SUB_ID

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

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfSuggestionsContainer(Object peer)
Suggestions container sits inside the suggestions popup of inputSearch component.

Method Summary

public Object
attach(AdfRichInputSearch component, HTMLElement suggestionsPopup)
Prepare the suggestions container to show loading indicator
private static Object
_clear(Object contentNode, Object suggestionsContainer, Object suggestionsPanel, Object underAutocompletion)
public Object
detach(Object component, Object contentNode, Object suggestionsPanel, Object underAutocompletion)
Clears the suggestionsContainer and inlines it back to inputSearch DOM
public static Object
getElement(Object component)
Gets the suggestionsContainder domElement.
private static Object
_getLoadingIndicator(Object component)
protected Object
Init(Object peer)
Initializes the instance.
protected static Object
InitClass()
private static Object
_initWidth(Object component, Object suggestionsContainer)
public static Object
needsUpdate(Object component)
private static Object
_renderLoadingIndicator(Object component, Object container, Object width, Object height)
public Object
reset(Object component, Object contentNode, Object suggestionsPanel)
Clears the suggestionsContainer and displays the loading indicator
public static Object
setHeight(Object component, Object height)
Used to adjust the height of the container as per the rowCount property
public static Object
showSuggestions(Object component, HTMLElement suggestionsPanel, HTMLElement suggestionsContainer)
Show suggestions by replacing the loading-indicator

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

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

Field Detail


_LOADING_INDICATOR_STYLE_CLASS

private static Object _LOADING_INDICATOR_STYLE_CLASS

_LOADING_INDICATOR_SUB_ID

private static Object _LOADING_INDICATOR_SUB_ID

_peer

private Object _peer

_SUGGESTIONS_CONTAINER_PLACEHOLDER_SUB_ID

private static Object _SUGGESTIONS_CONTAINER_PLACEHOLDER_SUB_ID

_SUGGESTIONS_CONTAINER_SUB_ID

private static Object _SUGGESTIONS_CONTAINER_SUB_ID

Constructor Detail


AdfSuggestionsContainer

public AdfSuggestionsContainer(Object peer)

Suggestions container sits inside the suggestions popup of inputSearch component. Its sibiling is the toolbar facet's content handled by AdfToolbarPanel. SuggestionsContainer holds/displays either the fetching (or loading) indicator or the suggest items, which is handled by AdfSuggestionsPanel. Primarily this class exposes attach, detach and reset method for interaction from inputSearch peer.

Parameters:
peer  

Method Detail


attach

public Object attach(AdfRichInputSearch component,
                     HTMLElement suggestionsPopup)

Prepare the suggestions container to show loading indicator

Parameters:
component  
suggestionsPopup  
Return:
Object

_clear

private static Object _clear(Object contentNode,
                             Object suggestionsContainer,
                             Object suggestionsPanel,
                             Object underAutocompletion)

Parameters:
contentNode  
suggestionsContainer  
suggestionsPanel  
underAutocompletion  
Return:
Object

detach

public Object detach(Object component,
                     Object contentNode,
                     Object suggestionsPanel,
                     Object underAutocompletion)

Clears the suggestionsContainer and inlines it back to inputSearch DOM

Parameters:
component  
contentNode  
suggestionsPanel  
underAutocompletion  
Return:
Object

getElement

public static Object getElement(Object component)

Gets the suggestionsContainder domElement. This domElement either holds the fetching (loading) indicator or the suggestions.

Parameters:
component  
Return:
Object

_getLoadingIndicator

private static Object _getLoadingIndicator(Object component)

Parameters:
component  
Return:
Object

Init

protected Object Init(Object peer)

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Parameters:
peer  
Return:
Object
Overrides:
AdfObject.Init()

InitClass

protected static Object InitClass()

Return:
Object

_initWidth

private static Object _initWidth(Object component,
                                 Object suggestionsContainer)

Parameters:
component  
suggestionsContainer  
Return:
Object

needsUpdate

public static Object needsUpdate(Object component)

Parameters:
component  
Return:
Object

_renderLoadingIndicator

private static Object _renderLoadingIndicator(Object component,
                                              Object container,
                                              Object width,
                                              Object height)

Parameters:
component  
container  
width  
height  
Return:
Object

reset

public Object reset(Object component,
                    Object contentNode,
                    Object suggestionsPanel)

Clears the suggestionsContainer and displays the loading indicator

Parameters:
component  
contentNode  
suggestionsPanel  
Return:
Object

setHeight

public static Object setHeight(Object component,
                               Object height)

Used to adjust the height of the container as per the rowCount property

Parameters:
component  
height  
Return:
Object

showSuggestions

public static Object showSuggestions(Object component,
                                     HTMLElement suggestionsPanel,
                                     HTMLElement suggestionsContainer)

Show suggestions by replacing the loading-indicator

Parameters:
component  
suggestionsPanel - Root element of suggestionsPanel - suggestionsBody
suggestionsContainer  
Return:
Object

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

 

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