Method Summary
|
private Object |
_applyPollTimeoutStyle()
-
Callback function to apply the "poll timeout" style to all components that were updated by the LAST poll, before the <af:poll> component timed out, due to user inactivity.
|
private Object |
_calculatePollingTimeoutInterval(Object interval)
-
+ * Calculates the global "timeout interval" for the af:poll components.
|
private HTMLElement |
_createPollingTimeoutLayerElement(HTMLElement element)
-
Helper function which creates a (simple) layer/DIV element to be placed ontop of those components that are no longer being updated, once the <af:poll> component has been "timed out".
|
private Object |
_forcePollingComponentStop()
-
Callback function which forces all <af:poll> components to stop sending polling requests down to the server since they timed out, due to user inactivity.
|
protected Object |
Init()
-
Create an instance of an AdfPollHelper
|
protected static Object |
InitClass()
-
Initializes the AdfPollHelper class
|
public Object |
initializePollingTimeout(Object interval)
-
Triggers the calculation of the global timeout interval of the embedding PAGE and schedules the timeout callback, if needed
|
public boolean |
isPollingTimeout()
-
Helper method to request the "state" of the polling timeout interval
|
private boolean |
_isPollingTimeout()
-
Helper method to request the "state" of the polling timeout interval
|
public Object |
registerPollComponent(Object component)
-
Hook for the PollPeer to register its component to keep track of its ID and timeout value.
|
private Object |
_removePollingTimeoutLayer()
-
Removes the "polling timeout layer" HTML elements and removes the "polling timeout" styles from those components that are no longer updated, once the polling times out.
|
private Object |
_rescheduleOrScheduleTimerIfNeeded()
-
Helper function to cancel and reschedule the timer callback.
|
private Object |
_resetPollingTimeoutHandler(Object event)
-
If needed this function (called by _redistribute()) resets the timeout interval
|
public Object |
unregisterPollComponent(Object component)
-
Called by the ComponentRemoved of the Peer to trigger the unregister of the removed component.
|