OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlActiveData

Warning:

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

public class AdfDhtmlActiveData
extends AdfObject
For the moment, this is just an empty placeholder. Eventually, the active data implementation will be pulled out of AdfDhtmlPage and hosted here. This will allow us to use library partitioning to pull in the active data code base on an as needed basis, rather than pulling this code down all the time with AdfDhtmlPage.



Field Summary

private Object
_activeComponents
private Object
_adsConnectionStateListeners
private static Object
_DEFAULT_ACTIVEDATA_CONFIG
private Object
_isWindowClosing
private Object
_keepAliveInterval
private Object
_lastActiveDataActivityTime
private Object
_lastPollTime
private Object
_latencyThreshold
private Object
_maxReconnectionRetries
private Object
_pollingInterval
private Object
_pollingTimer
private Object
_reconnectRetries
private Object
_reconnectWaitTime
private Object
_restartInterval
private Object
_serverTimeDifference
private Object
_transport


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDhtmlActiveData()
For the moment, this is just an empty placeholder.


Method Summary

private Object
_activeDataHotKeyhandler()
this is the callback function when we press the hot key in screenreader mode this function will walk through the active components list and if there is any dirty components, ask user to confirm if we should do a page refresh.
public Object
addADSConnectionStateListener(Object listener, Object instance)
This method registers a listener which is a callback function that is invoked on any change in the ADS connection state.
public Object
adsScreenReaderModeOnLoad(Object clientId)
handles onload related functions in screen reader mode
private Object
_announceActiveComponents()
this method pops up a dialog telling users about the active data information in the screenreader mode in this function we launch another thread to popup the alert window, since the alert is a blocking call, and our function is going to be called from the PPR handling code, blocking it will sometimes screw up the PPR timing
private Object
_announceActiveComponentsByAlert()
this method will create the message and popup the alert window
public Object
announceActiveComponentsChanged(Object oldActiveComponents)
check to see if there is any change made to the active data components on the page if yes, announce that.
private Object
_broadcastADSConnectionStateChange(Object adsConnectionState)
This method is called to notify the page of a new ADS connection state.
private Object
_cancelADSTimers()
clean up active data timers, like connection check timer and polling timer
private Object
_checkAdsConnection()
This method is called by a setInterval based timer to check if the channel is connected.
private Object
_claimMaster(String masterWindowId, String masterPageId)
a rich page calls this method to claim itself as the master this happens when rich page exists(not the init page case), but somehow we think we should create a channel on our page
private Object
_createADSChannel(Object reconnect)
this method create the channel and send the client state in one shot.
private Object
_createADSChannelParameterMap(Object reconnect)
creates the channel parameter map that we will use to submit the form to create channel
private Object
_createADSClientStateMap(Boolean createChannel)
Creates the client state map for all the windows, this is used in handling migration ADS reconnect.
public Object
failover(Object windows)
this function is called from the server, when the AdsProcessor notices it is in a failover
private Object
_findYoungestWindow(Object windowMap)
helper function to find the latest added (youngest) AdfPage object from our window map.
public Object
getActiveComponents()
private Object
_getActiveFrame()
get the IFrame that we will use for active data channel
public AdfDhtmlPage.PushChannelStates
getADSConnectionState()
Accessor for the current ADS connection state
private Object
_getADSMasterWindow(String masterWindowId)
Get the master window.
private Object
_getClientStateMap()
get the client state map, i.e.
private Object
_getMasterPageId()
get the master page Id
private Object
_getMasterWindowId()
get the master window ID
private Object
_getMilliSecondsBehind(Object timestamp)
private Object
_getRegistryMap()
gets the window name to window map
private AdfDhtmlPage
_getTargetPage(String windowId)
Returns the AdfDhtmlPage object for the specified windowId This will only be called when we deliver the events.
private static Object
_getTimeDifference(Object timestamp)
This method returns the difference in milliseconds between the current time and the passed in time
private Object
_handleADSChannelMigration()
handles the migration
private Object
_handleAllFailovers(Object windows)
this function is only called on the master window.
private Object
_handleDisconnect()
This method is invoked from the event handler(s) that detect disconnection from the push channel.
private Object
_handleFailover()
this function handles failover for each individual window
protected Object
Init()
Initializes the instance.
public Object
initActivePage()
when we need to initialize the active page, we do it here
private Object
_initActivePage()
Setup the page states Plus, if we are master, create the channel.
private Object
_initAdm()
this method initializes the page states this should only be called once
public Object
initializeActiveForm(Boolean wls, String ctxName)
Initializing the ADS Active Form URL, based on the underlying runtime.
private Object
_initializeADSIFrame()
public Object
initLongPolling()
This script is rendered by the server to trigger a new long-polling request from the client to the server.
public Object
isHAMigrated()
Queries the migrated state of this AdfPage object.
private Object
_makeADSChannelRequest(Boolean createChannel, Boolean reconnect)
Makes the request to server to create channel, this also sends the change counts.
private Object
_notifyADSConnectionStateChange(Object adsConnectionState)
Notifies the page of the latest ADS connection state.
public Object
onBeforeUnload()
This method is normally called from AdfPage.PAGE._handleBeforeUnload() However, when we ask the user whether navigation is desired, this method will be called from page's onUnload
private Object
_pollForEvents()
This is the method that prepares and sends the poll request
public Object
populateStartActiveDataArray(Object startActiveDataArray, Object startActiveDataEventIdArray, Object currClientId)
populate the start active data array
private Object
_prepareAdsConnectionTimer()
Helper function that handles to schedule the _checkAdsConnection timer.
public Object
processActiveDataEvent(String windowId, String pageId, String clientId, Object payload, Number changeCount, Number timeStamp, Number eventNumber, Number perfLogging)
Process an active data event from the push service.
private Boolean
_processPushData(String clientId, Object payload, Number changeCount, Boolean isLate, Number eventNumber, Boolean perfLogging)
This method is called by the current active data manager to delivery active data to a component, returning whether the component the component can accept more active data events.
private Object
_reconnect()
This method sends a reconnect request and sets a timer for the next reconnect attempt If the configured maximum number of reconnect attempts is reached, then a warning is logged to the console and no further reconnect attempts are made.
public Object
recordActiveDataActivity()
Heartbeat called from active data iframe
private Object
_refreshAllPushComponents()
this method makes a request to refresh all the push components within the page use case:
public Object
refreshPushComponent(String windowId, String pageId, String clientId)
this method is invoked through a script rendered over the push channel it finds the window identified by windowId and makes a request to the rich page on the window for refreshing the push component with the specified clientId use cases:
private Boolean
_refreshPushComponent(String clientId)
this method makes a request to the rich page for refreshing a push component use case:
private Object
_registerWindowWithADSMaster(Object registeringWindow)
Registers a page with the AdfDhtmlPage acting as the master
public Object
registerWithNewMaster(Object masterWindowId, Object masterPageId)
this method is called in this scenario:
private Object
_registerWithNewMaster(Object state)
this method registers this window with this new master window
public Object
removeADSConnectionStateListener(Object listener, Object instance)
This method unregisters a listener callback function from being invoked on any change in the ADS connection state
private static Object
_requestCallback(Object xmlRequest)
Callback for the XHR onreadystatechange handler.
public Object
requestStatusChanged(Object requestEvent)
public Object
reset()
private Object
_sendADSChannelRequest(Object channelParameterMap, Object clientStateMap)
This method does the following:
public Object
setActiveComponents(Object activeComponents)
private Object
_setBodyCursorForActivePage()
In FF2 active page shows progress cursor so we need to set custom cursor that looks like default cursor arrow.
public Object
setConfiguration(Object config)
This script is rendered by the server to send active data configuration parameters as stored in a configuration file on the server (adf-config.xml)
public Object
setConnected()
This script is rendered by the server over the push channel to notify the Page that the channel is connected
public Object
setHAMigrated(Object migration)
Takes a boolean to tell the AdfPage object if this in an HA migration
private Object
_setMasterPageId(String masterPageId)
set the master page id
private Object
_setMasterWindowId(String masterWindowId)
set the master window ID
private Object
_setMasterWindowRef(Object masterWinRef)
set the reference to the window object
private Object
_setReplaceMasterPageId(Object replaceMasterPageId)
set the replace master page ID
private Object
_setReplaceMasterWindowId(Object replaceMasterWindowId)
set the replace master window ID
public Object
setServerTimestamp(Object timestamp)
This script is rendered by the server to send the server time to the client.
private Object
_startPolling()
_startPolling is called by the onload handler for the iframe and is responsible for scheduling the next polling timeout.
public Object
stop()
This functon gets called when user has been inactive for a period of inactivity timesout interval.
private Object
_stopActiveData(Object clientId)
notifies the active data manager to stop delivering events for the specified component
private Object
_testAdfPageExistence(Object windowObject)
test the window object to see if the rich page exists
public Object
unmapComponent(Object clientId)
unmap the component.
public Object
updateActiveDataComponents(String masterWindowId, String masterPageId, String pageId, Boolean modelChanged, String... clientIds, Number... changeCounts)
List of components to update the active data counts for.
private Object
_wrapMasterWindowId(Object windowId)
this is for safety, in case somebody messes up the window id basically in IE, window.open() doesn't like anything like "/", "-", or "."


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


_activeComponents

private Object _activeComponents

_adsConnectionStateListeners

private Object _adsConnectionStateListeners

_DEFAULT_ACTIVEDATA_CONFIG

private static Object _DEFAULT_ACTIVEDATA_CONFIG

_isWindowClosing

private Object _isWindowClosing

_keepAliveInterval

private Object _keepAliveInterval

_lastActiveDataActivityTime

private Object _lastActiveDataActivityTime

_lastPollTime

private Object _lastPollTime

_latencyThreshold

private Object _latencyThreshold

_maxReconnectionRetries

private Object _maxReconnectionRetries

_pollingInterval

private Object _pollingInterval

_pollingTimer

private Object _pollingTimer

_reconnectRetries

private Object _reconnectRetries

_reconnectWaitTime

private Object _reconnectWaitTime

_restartInterval

private Object _restartInterval

_serverTimeDifference

private Object _serverTimeDifference

_transport

private Object _transport

Constructor Detail


AdfDhtmlActiveData

public AdfDhtmlActiveData()

For the moment, this is just an empty placeholder. Eventually, the active data implementation will be pulled out of AdfDhtmlPage and hosted here. This will allow us to use library partitioning to pull in the active data code base on an as needed basis, rather than pulling this code down all the time with AdfDhtmlPage.

Method Detail


_activeDataHotKeyhandler

private Object _activeDataHotKeyhandler()

this is the callback function when we press the hot key in screenreader mode this function will walk through the active components list and if there is any dirty components, ask user to confirm if we should do a page refresh.

Return:
Object

addADSConnectionStateListener

public Object addADSConnectionStateListener(Object listener,
                                            Object instance)

This method registers a listener which is a callback function that is invoked on any change in the ADS connection state.

Parameters:
listener  -  Object, the callback function to invoke on ADS connection status change
instance  -  Object, the object to use as 'this' when invoking the callback
Return:
Object

adsScreenReaderModeOnLoad

public Object adsScreenReaderModeOnLoad(Object clientId)

handles onload related functions in screen reader mode

Parameters:
clientId    
Return:
Object

_announceActiveComponents

private Object _announceActiveComponents()

this method pops up a dialog telling users about the active data information in the screenreader mode in this function we launch another thread to popup the alert window, since the alert is a blocking call, and our function is going to be called from the PPR handling code, blocking it will sometimes screw up the PPR timing

Return:
Object

_announceActiveComponentsByAlert

private Object _announceActiveComponentsByAlert()

this method will create the message and popup the alert window

Return:
Object

announceActiveComponentsChanged

public Object announceActiveComponentsChanged(Object oldActiveComponents)

check to see if there is any change made to the active data components on the page if yes, announce that. Note, this function will only be called in screen reader mode. Also, it modifies the passed in parameter - oldActiveComponents

Parameters:
oldActiveComponents    
Return:
Object

_broadcastADSConnectionStateChange

private Object _broadcastADSConnectionStateChange(Object adsConnectionState)

This method is called to notify the page of a new ADS connection state. It broadcasts the new state to all listeners registered with the page. This may be called on a non-master window by the master window to synchronize the connection state across all windows.

Parameters:
adsConnectionState  -  Object, a value from the AdfDhtmlPage.PushChannelStates 'enum'
Return:
Object

_cancelADSTimers

private Object _cancelADSTimers()

clean up active data timers, like connection check timer and polling timer

Return:
Object

_checkAdsConnection

private Object _checkAdsConnection()

This method is called by a setInterval based timer to check if the channel is connected. It checks the time elapsed since the last ADS activity was recorded and if that exceeds the interval in which we expect keep alive messages (plus the max allowable latency), then the client is assumed to be disconnected and the disconnect handler is invoked.

Return:
Object

_claimMaster

private Object _claimMaster(String masterWindowId,
                            String masterPageId)

a rich page calls this method to claim itself as the master this happens when rich page exists(not the init page case), but somehow we think we should create a channel on our page

Parameters:
masterWindowId  -  the master window id
masterPageId  -  the master page id
Return:
Object

_createADSChannel

private Object _createADSChannel(Object reconnect)

this method create the channel and send the client state in one shot.

Parameters:
reconnect    
Return:
Object

_createADSChannelParameterMap

private Object _createADSChannelParameterMap(Object reconnect)

creates the channel parameter map that we will use to submit the form to create channel

Parameters:
reconnect    
Return:
Object

_createADSClientStateMap

private Object _createADSClientStateMap(Boolean createChannel)

Creates the client state map for all the windows, this is used in handling migration ADS reconnect.

Parameters:
createChannel  -  are we the master page or not
Return:
Object

failover

public Object failover(Object windows)

this function is called from the server, when the AdsProcessor notices it is in a failover

Parameters:
windows    
Return:
Object

_findYoungestWindow

private Object _findYoungestWindow(Object windowMap)

helper function to find the latest added (youngest) AdfPage object from our window map.

Parameters:
windowMap    
Return:
Object

getActiveComponents

public Object getActiveComponents()

Return:
Object

_getActiveFrame

private Object _getActiveFrame()

get the IFrame that we will use for active data channel

Return:
Object - Return {DOM.iframe} the iframe used for active data channel

getADSConnectionState

public AdfDhtmlPage.PushChannelStates getADSConnectionState()

Accessor for the current ADS connection state

Return:
AdfDhtmlPage.PushChannelStates - one of the values contained within the enum AdfDhtmlPage.PushChannelStates. May be undefined if ADS hasn't been initialized.

_getADSMasterWindow

private Object _getADSMasterWindow(String masterWindowId)

Get the master window. It will return the window reference if it is the current master window. otherwise it will return null.

Parameters:
masterWindowId  -  The master window id
Return:
Object - Return {Window} window object only if it contains the rich page

_getClientStateMap

private Object _getClientStateMap()

get the client state map, i.e. _activeComponents

Return:
Object - Returns {Object} client state map, i.e. the _activeChangeCount

_getMasterPageId

private Object _getMasterPageId()

get the master page Id

Return:
Object - Returns {String} master page Id

_getMasterWindowId

private Object _getMasterWindowId()

get the master window ID

Return:
Object - Returns {String} master window's Id

_getMilliSecondsBehind

private Object _getMilliSecondsBehind(Object timestamp)

Parameters:
timestamp    
Return:
Object

_getRegistryMap

private Object _getRegistryMap()

gets the window name to window map

Return:
Object - Returns {Object} the window registry, i.e. the windowNameToWindow map

_getTargetPage

private AdfDhtmlPage _getTargetPage(String windowId)

Returns the AdfDhtmlPage object for the specified windowId This will only be called when we deliver the events. The initial window registration will go through different methods. Because in that case, we will use window.open, we don't need to look into the windowNameToWindow map; while in the event delivery case, we don't want to call window.open, becasue there might be some events aiming for non-existing window. And window.name will open a blank window in that case.

Parameters:
windowId  -  Name of window object to return
Return:
AdfDhtmlPage - AdfDhtmlPage object for the target page

_getTimeDifference

private static Object _getTimeDifference(Object timestamp)

This method returns the difference in milliseconds between the current time and the passed in time

Parameters:
timestamp    
Return:
Object

_handleADSChannelMigration

private Object _handleADSChannelMigration()

handles the migration

Return:
Object

_handleAllFailovers

private Object _handleAllFailovers(Object windows)

this function is only called on the master window. and it handles failover for all windows managed by itself

Parameters:
windows    
Return:
Object

_handleDisconnect

private Object _handleDisconnect()

This method is invoked from the event handler(s) that detect disconnection from the push channel. This is not used in the polling case.

Return:
Object

_handleFailover

private Object _handleFailover()

this function handles failover for each individual window

Return:
Object

Init

protected Object Init()

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

Return:
Object
Overrides:
AdfObject.Init()

initActivePage

public Object initActivePage()

when we need to initialize the active page, we do it here

Return:
Object

_initActivePage

private Object _initActivePage()

Setup the page states Plus, if we are master, create the channel.

Return:
Object

_initAdm

private Object _initAdm()

this method initializes the page states this should only be called once

Return:
Object

initializeActiveForm

public Object initializeActiveForm(Boolean wls,
                                   String ctxName)

Initializing the ADS Active Form URL, based on the underlying runtime.

Parameters:
wls  -  boolean if this app runs on wls.
ctxName  -  the application context name
Return:
Object

_initializeADSIFrame

private Object _initializeADSIFrame()

Return:
Object

initLongPolling

public Object initLongPolling()

This script is rendered by the server to trigger a new long-polling request from the client to the server.

Return:
Object

isHAMigrated

public Object isHAMigrated()

Queries the migrated state of this AdfPage object. this needs to be called from other pages, so we make it public

Return:
Object

_makeADSChannelRequest

private Object _makeADSChannelRequest(Boolean createChannel,
                                      Boolean reconnect)

Makes the request to server to create channel, this also sends the change counts.

Parameters:
createChannel  -  are we the master page or not
reconnect  -  a flag
Return:
Object

_notifyADSConnectionStateChange

private Object _notifyADSConnectionStateChange(Object adsConnectionState)

Notifies the page of the latest ADS connection state. This should be called only on the master window. It will go over all the active windows and broadcast the state change to them (including itself). Each window in turn will broadcast the state change to each peer registered as a listener for the purpose of displaying the correct status indicator.

Parameters:
adsConnectionState    
Return:
Object

onBeforeUnload

public Object onBeforeUnload()

This method is normally called from AdfPage.PAGE._handleBeforeUnload() However, when we ask the user whether navigation is desired, this method will be called from page's onUnload

Return:
Object

_pollForEvents

private Object _pollForEvents()

This is the method that prepares and sends the poll request

Return:
Object

populateStartActiveDataArray

public Object populateStartActiveDataArray(Object startActiveDataArray,
                                           Object startActiveDataEventIdArray,
                                           Object currClientId)

populate the start active data array

Parameters:
startActiveDataArray    
startActiveDataEventIdArray    
currClientId    
Return:
Object

_prepareAdsConnectionTimer

private Object _prepareAdsConnectionTimer()

Helper function that handles to schedule the _checkAdsConnection timer. If the timer has already been scheduled it will be canceled an rescheduled again.

Return:
Object

processActiveDataEvent

public Object processActiveDataEvent(String windowId,
                                     String pageId,
                                     String clientId,
                                     Object payload,
                                     Number changeCount,
                                     Number timeStamp,
                                     Number eventNumber,
                                     Number perfLogging)

Process an active data event from the push service. This method is called from the push channel

Parameters:
windowId  -  Identifier of window that is the target for this event
pageId  -  Identifier of page that is the target for this event
clientId  -  Identifier of component that is the target of this event
payload  -  Payload to be delivered to the component
changeCount  -  for this event, so that component can determine whether to discard this event if the component has been synchronously updated more recently
timeStamp  -  GMT timestamp in millis from the data source
eventNumber  -  cross component event nubmer (this is passed in only when the profiler is turned on and logging level is info)
perfLogging  -  flag indicating if the event needs to be logged of timing
Return:
Object

_processPushData

private Boolean _processPushData(String clientId,
                                 Object payload,
                                 Number changeCount,
                                 Boolean isLate,
                                 Number eventNumber,
                                 Boolean perfLogging)

This method is called by the current active data manager to delivery active data to a component, returning whether the component the component can accept more active data events. A component may no longer be able to recieve active data events if the component is no longer visible.

Only the Active Data Manager should call this method.


Parameters:
clientId  -  client id of the component to deliver the event to
payload  -  Peer-specific payload for the component
changeCount  -  the current event index
isLate  -  flag indicating whether the event was received beyond the configured threshold
eventNumber  -  cross component event nubmer (this is passed in only when the profiler is turned on and logging level is info)
perfLogging  -  flag indicating if the event needs to be logged of timing
Return:
Boolean - Returns true if the component should continue to receive active data events.

_reconnect

private Object _reconnect()

This method sends a reconnect request and sets a timer for the next reconnect attempt If the configured maximum number of reconnect attempts is reached, then a warning is logged to the console and no further reconnect attempts are made.

Return:
Object

recordActiveDataActivity

public Object recordActiveDataActivity()

Heartbeat called from active data iframe

Return:
Object

_refreshAllPushComponents

private Object _refreshAllPushComponents()

this method makes a request to refresh all the push components within the page use case: encoder instructed, latency, etc.

Return:
Object

refreshPushComponent

public Object refreshPushComponent(String windowId,
                                   String pageId,
                                   String clientId)

this method is invoked through a script rendered over the push channel it finds the window identified by windowId and makes a request to the rich page on the window for refreshing the push component with the specified clientId use cases: encoder instructed and latency

Parameters:
windowId  -  String, the windowId of the page containing the component that we want to refresh
pageId  -  String, the pageId of the page containing the component that we want to refresh
clientId  -  String, the clientId of the component that we want to refresh
Return:
Object

_refreshPushComponent

private Boolean _refreshPushComponent(String clientId)

this method makes a request to the rich page for refreshing a push component use case: encoder instructed, latency, etc.

Parameters:
clientId  -  String, the clietnId of the component that we want to refresh
Return:
Boolean - Returns true if the component should continue to receive active data events.

_registerWindowWithADSMaster

private Object _registerWindowWithADSMaster(Object registeringWindow)

Registers a page with the AdfDhtmlPage acting as the master

Parameters:
registeringWindow    
Return:
Object

registerWithNewMaster

public Object registerWithNewMaster(Object masterWindowId,
                                    Object masterPageId)

this method is called in this scenario: we submit the request to create the channel, server decides that there is already another channel which is good for use, so it will return a new master window id, and we need to register with this new master page we backoff for 3 seconds before we register

Parameters:
masterWindowId    
masterPageId    
Return:
Object

_registerWithNewMaster

private Object _registerWithNewMaster(Object state)

this method registers this window with this new master window

Parameters:
state  -  the map which has the parameters - wId: the mastet window Id - pId: the master page Id
Return:
Object

removeADSConnectionStateListener

public Object removeADSConnectionStateListener(Object listener,
                                               Object instance)

This method unregisters a listener callback function from being invoked on any change in the ADS connection state

Parameters:
listener  -  Object, the callback function to invoke on ADS connection state change
instance  -  Object, the object registered to be used as 'this' when invoking the callback
Return:
Object

_requestCallback

private static Object _requestCallback(Object xmlRequest)

Callback for the XHR onreadystatechange handler. In ADS XHRs (long- and periodic-polling) we use this callback, as we are using a separate queue for all ADS XHR objects.

Parameters:
xmlRequest    
Return:
Object

requestStatusChanged

public Object requestStatusChanged(Object requestEvent)

Parameters:
requestEvent    
Return:
Object

reset

public Object reset()

Return:
Object

_sendADSChannelRequest

private Object _sendADSChannelRequest(Object channelParameterMap,
                                      Object clientStateMap)

This method does the following: - create the active data form, if needed - set up form inputs from the passed in parameters - post the form the active data target It is used in both the poll and push cases

Parameters:
channelParameterMap    
clientStateMap    
Return:
Object

setActiveComponents

public Object setActiveComponents(Object activeComponents)

Parameters:
activeComponents    
Return:
Object

_setBodyCursorForActivePage

private Object _setBodyCursorForActivePage()

In FF2 active page shows progress cursor so we need to set custom cursor that looks like default cursor arrow.

Return:
Object

setConfiguration

public Object setConfiguration(Object config)

This script is rendered by the server to send active data configuration parameters as stored in a configuration file on the server (adf-config.xml)

Parameters:
config    
Return:
Object

setConnected

public Object setConnected()

This script is rendered by the server over the push channel to notify the Page that the channel is connected

Return:
Object

setHAMigrated

public Object setHAMigrated(Object migration)

Takes a boolean to tell the AdfPage object if this in an HA migration

Parameters:
migration    
Return:
Object

_setMasterPageId

private Object _setMasterPageId(String masterPageId)

set the master page id

Parameters:
masterPageId  -  the master page Id
Return:
Object

_setMasterWindowId

private Object _setMasterWindowId(String masterWindowId)

set the master window ID

Parameters:
masterWindowId  -  the master window id to set
Return:
Object

_setMasterWindowRef

private Object _setMasterWindowRef(Object masterWinRef)

set the reference to the window object

Parameters:
masterWinRef    
Return:
Object

_setReplaceMasterPageId

private Object _setReplaceMasterPageId(Object replaceMasterPageId)

set the replace master page ID

Parameters:
replaceMasterPageId    
Return:
Object

_setReplaceMasterWindowId

private Object _setReplaceMasterWindowId(Object replaceMasterWindowId)

set the replace master window ID

Parameters:
replaceMasterWindowId    
Return:
Object

setServerTimestamp

public Object setServerTimestamp(Object timestamp)

This script is rendered by the server to send the server time to the client. The server time is stored on the page and is used for latency calculation

Parameters:
timestamp    
Return:
Object

_startPolling

private Object _startPolling()

_startPolling is called by the onload handler for the iframe and is responsible for scheduling the next polling timeout. It was added to avoid making a poll request when the previous poll response had not come back. Instead of making poll requests at fixed intervals, we make poll requests only after a poll response comes back taking into account the time elapsed and configured polling interval. For example: if polling interval is "i" and the poll response returns in delta "t" from the time the poll request was sent, then: if (t >= i) poll immediately else poll in (i - t)

Return:
Object

stop

public Object stop()

This functon gets called when user has been inactive for a period of inactivity timesout interval. It stops ADS on client side by aborting Long-Polling request in Long-Polling mode or by forcing Push channel to terminate in Streaming mode. For polling and long-polling mode, no more polling reqeust will be sent to server.

Return:
Object

_stopActiveData

private Object _stopActiveData(Object clientId)

notifies the active data manager to stop delivering events for the specified component

Parameters:
clientId    
Return:
Object

_testAdfPageExistence

private Object _testAdfPageExistence(Object windowObject)

test the window object to see if the rich page exists

Parameters:
windowObject    
Return:
Object - Returns true if the window object contains a rich page

unmapComponent

public Object unmapComponent(Object clientId)

unmap the component. called when we remove a component from the page

Parameters:
clientId    
Return:
Object

updateActiveDataComponents

public Object updateActiveDataComponents(String masterWindowId,
                                         String masterPageId,
                                         String pageId,
                                         Boolean modelChanged,
                                         String... clientIds,
                                         Number... changeCounts)

List of components to update the active data counts for. If the component isn't already in the list of active components, it will be added.

Removal is handled automatically when the component is removed from the client side tree.


Parameters:
masterWindowId  -  Id of the master window.
masterPageId  -  Id of the master window.
pageId  -  Id of the current window.
modelChanged  -  indicates that model has changed and to force an ADS start.
clientIds  -  Alternating varargs of trgs of the component's client ID
changeCounts  -  Alternating varargs of the component's change count
Return:
Object
See also:
unmapComponent(Object)

_wrapMasterWindowId

private Object _wrapMasterWindowId(Object windowId)

this is for safety, in case somebody messes up the window id basically in IE, window.open() doesn't like anything like "/", "-", or "."

Parameters:
windowId    
Return:
Object - Returns {String} wrapped window id which doesn't contains those chars

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

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.