|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
Base interface for all async events.
Async events are events that browser must execute after some time past their creation,
these events can be IntervalAsyncEvents, TimeoutAsyncEvents,
XmlHttpRequestAsyncEvents or MetaRefreshAsyncEvents.
Async events can be quered and/or executed using AsyncEvents object returned by
ActiwateSession.getAsyncEvents()
method call.
There are two modes of processing async events: automatic and not automatic.
For more information on processing modes, see documentation for
ActiwateSession.setExecAsyncEventsAutomatically(boolean)
method.
| Field Summary | |
static int |
INTERVAL
Timer(setInterval()) async event type code. |
static int |
METAREFRESH
Meta refresh async event type code. |
static int |
TIMEOUT
Timer(setTimeout()) async event type code. |
static int |
XMLHTTPREQUEST
XmlHttpRequest async event type code. |
| Method Summary | |
org.w3c.dom.Node |
getOriginatingNode()
Returns originating node. |
Page |
getPage()
Returns page which contains originating node returned by getOriginatingNode() method. |
long |
getTimeOffset()
Returns offset in milliseconds after which the event should be executed. |
int |
getType()
Returns async event type. |
boolean |
isCancelled()
Returns value indicating whether or not this event was cancelled. |
boolean |
isExecuted()
Returns value indicating whether or not this event was executed. |
| Field Detail |
public static final int INTERVAL
getType(),
IntervalAsyncEvent,
Constant Field Valuespublic static final int TIMEOUT
getType(),
TimeoutAsyncEvent,
Constant Field Valuespublic static final int XMLHTTPREQUEST
getType(),
XmlHttpRequestAsyncEvent,
Constant Field Valuespublic static final int METAREFRESH
getType(),
MetaRefreshAsyncEvent,
Constant Field Values| Method Detail |
public int getType()
INTERVAL, TIMEOUT, XMLHTTPREQUEST or METAREFRESH values.public long getTimeOffset()
public boolean isExecuted()
public boolean isCancelled()
public org.w3c.dom.Node getOriginatingNode()
MetaRefreshAsyncEvents this method returns corresponding meta element.
<script> setTimeout('alert(1)', 1000) </script>), this method returns
script element node.
<div onclick="setTimeout('alert(1)', 1000)"> ), this method
returns corresponding html element node.
<body onload="setTimeout('alert(1)', 1000)"> (note that some of body
event handlers, including onload are window event handlers)), this method
returns document node.
public Page getPage()
getOriginatingNode() method.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||