public interface ClientDocument extends ItsNatUserData
ItsNatDocument.getClientDocumentOwner()
,
ItsNatEvent.getClientDocument()
,
ItsNatServletRequest.getClientDocument()
Modifier and Type | Method and Description |
---|---|
void |
addAsynchronousTask(java.lang.Runnable task,
boolean lockDoc,
int maxWait,
org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener,
int commMode,
ParamTransport[] extraParams,
java.lang.String preSendCode,
long eventTimeout)
Executes the specified
task in a new thread and ensures that any DOM modification performed by this task
is sent to the client when the task ends. |
void |
addAsynchronousTask(java.lang.Runnable task,
org.w3c.dom.events.EventListener listener)
Executes the specified
task in a new thread and ensures that any DOM modification performed by this task
is sent to the client when the task ends. |
void |
addCodeToSend(java.lang.Object code)
Add JavaScript code to send to the client (pending code).
|
void |
addCodeToSendListener(CodeToSendListener listener)
Registers a new
CodeToSendListener , this listener is called
every time addCodeToSend(Object) is called. |
void |
addContinueEventListener(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener)
Registers a "continue"
EventListener with the
document default communication mode and event timeout, no extra parameters and no custom JavaScript code. |
void |
addContinueEventListener(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener,
int commMode,
ParamTransport[] extraParams,
java.lang.String preSendCode,
long eventTimeout)
Registers a "continue"
EventListener . |
void |
addEventListener(org.w3c.dom.events.EventListener listener)
Adds a global event listener to this client.
|
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
Registers a new DOM
org.w3c.dom.events.EventListener with the
document default communication mode and timeout, no extra parameters and no custom JavaScript code. |
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
int commMode)
Registers a new DOM
org.w3c.dom.events.EventListener with no extra
parameters and no custom JavaScript code, and document default event timeout. |
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
int commMode,
ParamTransport[] extraParams,
java.lang.String preSendCode,
long eventTimeout)
Registers a new DOM
org.w3c.dom.events.EventListener . |
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
ParamTransport extraParam)
Registers a new DOM
org.w3c.dom.events.EventListener with
document default communication mode and timeout, the specified extra
parameter and no custom JavaScript code. |
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
ParamTransport[] extraParams)
Registers a new DOM
org.w3c.dom.events.EventListener with
document default communication mode and timeout, the specified extra
parameters and no custom JavaScript code. |
void |
addEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
java.lang.String preSendCode)
Registers a new DOM
org.w3c.dom.events.EventListener with
document default communication mode and event timeout, no extra
parameters and the specified custom JavaScript code. |
void |
addMutationEventListener(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
Registers a new DOM
org.w3c.dom.events.EventListener to receive any node mutation
as a mutation event fired by the client, using the default communication mode and timeout of the document
and no custom JavaScript code. |
void |
addMutationEventListener(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener,
boolean useCapture,
int commMode,
java.lang.String preSendCode,
long eventTimeout)
Registers a new DOM
org.w3c.dom.events.EventListener to receive any node mutation
as a mutation event fired by the client. |
void |
addUserEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String name,
org.w3c.dom.events.EventListener listener)
Registers a "user"
EventListener . |
void |
addUserEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String name,
org.w3c.dom.events.EventListener listener,
int commMode,
ParamTransport[] extraParams,
java.lang.String preSendCode,
long eventTimeout)
Registers a "user"
EventListener . |
CometNotifier |
createCometNotifier()
Creates a COMET notifier bound to this client and to the server document associated.
|
CometNotifier |
createCometNotifier(int commMode,
long eventTimeout)
Creates a COMET notifier bound to this client and to the server document associated.
|
CometNotifier |
createCometNotifier(long eventTimeout)
Creates a COMET notifier bound to this client and to the server document associated.
|
ItsNatTimer |
createItsNatTimer()
Creates a timer utility object associated to this client.
|
void |
disableSendCode()
Disables the
addCodeToSend(Object) method, no new code can be added
to send to the client. |
boolean |
dispatchEvent(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.Event evt)
Sends the specified event to the browser and waits until this event is dispatched
calling dispatchEvent (W3C browsers) or fireEvent (MSIE) on the browser.
|
boolean |
dispatchEvent(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.Event evt,
int commMode,
long eventTimeout)
Sends the specified event to the browser and waits until this event is dispatched
calling dispatchEvent (W3C browsers) or fireEvent (MSIE) on the browser.
|
void |
enableSendCode()
Enables the
addCodeToSend(Object) method, new code can be added
to send to the client. |
long |
getCreationTime()
Returns the time in milliseconds when this object was created.
|
java.lang.String |
getId()
Returns the client identity.
|
ItsNatDocument |
getItsNatDocument()
Returns the ItsNat document associated.
|
ItsNatSession |
getItsNatSession()
Returns the parent ItsNat session.
|
long |
getLastRequestTime()
Returns the time in milliseconds of the last access to the document using
this client.
|
ScriptUtil |
getScriptUtil()
Returns the scripting utility.
|
boolean |
isSendCodeEnabled()
Informs whether JavaScript code can be added to send to the client
calling
addCodeToSend(Object) |
void |
removeCodeToSendListener(CodeToSendListener listener)
Removes a previously registered
CodeToSendListener . |
void |
removeEventListener(org.w3c.dom.events.EventListener listener)
Removes the specified global event listener registered in this client.
|
void |
removeEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
Removes the listener registration with the specified node target, name, listener and capture.
|
void |
removeMutationEventListener(org.w3c.dom.events.EventTarget target,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
Removes the mutation listener registration with the specified node target, listener and capture.
|
void |
removeUserEventListener(org.w3c.dom.events.EventTarget target,
java.lang.String name,
org.w3c.dom.events.EventListener listener)
Removes the listener registration with the specified node target, name and listener.
|
void |
startEventDispatcherThread(java.lang.Runnable task)
Executes the specified task in a new thread, this code is ready to
call
EventTarget.dispatchEvent(Event) or
dispatchEvent(EventTarget,Event,int,long)
many times. |
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
java.lang.String getId()
ItsNatSession
and never reused in this context.
The identity value is unique no other session-identified object in the same session shares the same id.
Although this object is garbage collected, the identity value is never reused by another session-identified object in the same session.
ItsNatSession getItsNatSession()
ItsNatDocument getItsNatDocument()
If this object is a remote control client
the document returned may be invalid (see ItsNatDocument.isInvalid()
).
void addCodeToSend(java.lang.Object code)
Use this method exceptionally when only this client must receive the code submitted,
otherwise use ItsNatDocument.addCodeToSend(Object)
code
- the code to send, Object.toString()
is called to convert to string.ItsNatException
- if no code can be added.isSendCodeEnabled()
,
ScriptUtil
boolean isSendCodeEnabled()
addCodeToSend(Object)
disableSendCode()
void disableSendCode()
addCodeToSend(Object)
method, no new code can be added
to send to the client.enableSendCode()
void enableSendCode()
addCodeToSend(Object)
method, new code can be added
to send to the client.disableSendCode()
void addCodeToSendListener(CodeToSendListener listener)
CodeToSendListener
, this listener is called
every time addCodeToSend(Object)
is called.listener
- the new listener.removeCodeToSendListener(CodeToSendListener)
void removeCodeToSendListener(CodeToSendListener listener)
CodeToSendListener
.listener
- the new listener.addCodeToSendListener(CodeToSendListener)
long getCreationTime()
long getLastRequestTime()
ScriptUtil getScriptUtil()
CometNotifier createCometNotifier()
Current implementation calls createCometNotifier(long)
with the
default event timeout returned by ItsNatDocument.getEventTimeout()
.
CometNotifier createCometNotifier(long eventTimeout)
The communication mode is the pure asynchronous mode of the default communication mode
(CommMode.XHR_ASYNC
or CommMode.SCRIPT
)
eventTimeout
- the timeout for any event used to notify the client. If negative no timeout is defined.createCometNotifier(int,long)
CometNotifier createCometNotifier(int commMode, long eventTimeout)
commMode
- the communication mode, must be pure asynchronous.eventTimeout
- the timeout for any event used to notify the client. If negative no timeout is defined.CommMode
void startEventDispatcherThread(java.lang.Runnable task)
EventTarget.dispatchEvent(Event)
or
dispatchEvent(EventTarget,Event,int,long)
many times.
Use the thread created by this method to send events fired in the server to the browser simulating user actions.
This method must be called using a servlet-request thread.
task
- the task to execute.boolean dispatchEvent(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.Event evt) throws org.w3c.dom.events.EventException
Used the default communication mode of the document (ItsNatDocument.getCommMode()
) and
event timeout (ItsNatDocument.getEventTimeout()
).
target
- the event target DOM object.evt
- the DOM event to send to target.org.w3c.dom.events.EventException
dispatchEvent(EventTarget,Event,int,long)
boolean dispatchEvent(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.Event evt, int commMode, long eventTimeout) throws org.w3c.dom.events.EventException
This method must not be called using a servlet-request thread. See the Reference Manual ("Events fired by the server" chapter) about requirements of the caller thread.
The commMode
parameter and eventTimeout
are used to specify the communication
mode and timeout of the internal event sent to the server to notify the client has
already dispatched the event.
target
- the event target DOM object.evt
- the DOM event to send to target.commMode
- communication mode.eventTimeout
- the timeout of the event when asynchronous. If negative no timeout is defined.org.w3c.dom.events.EventException
ItsNatDocument.dispatchEvent(EventTarget,Event)
,
startEventDispatcherThread(Runnable code)
void addContinueEventListener(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener)
EventListener
with the
document default communication mode and event timeout, no extra parameters and no custom JavaScript code.target
- optional target element usually useful along with ParamTransport
objects. May be null.listener
- the listener to receive the event.addContinueEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,int,org.itsnat.core.event.ParamTransport[],String,long)
void addContinueEventListener(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener, int commMode, ParamTransport[] extraParams, java.lang.String preSendCode, long eventTimeout)
EventListener
.
When this listener is registered the server sends custom JavaScript code to fire automatically
from browser a ItsNatContinueEvent
sent to the listener. This event usually carries
client data necesary to continue a pending server task (and any JavaScript code sent to the client
prior to register the listener was executed, this new client state may be the carried data if any).
There is no "remove listener" method because the listener is automatically removed when receives and processes the event.
target
- optional target element usually useful along with ParamTransport
objects. May be null.listener
- the listener to receive the event.commMode
- communication mode.extraParams
- optional client to server data transport and synchronization rules. May be null.preSendCode
- custom JavaScript code to execute before an event of this listener type is fired. May be null.eventTimeout
- the timeout of asynchronous events. If negative no timeout is defined.CommMode
ItsNatTimer createItsNatTimer()
void addAsynchronousTask(java.lang.Runnable task, boolean lockDoc, int maxWait, org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener, int commMode, ParamTransport[] extraParams, java.lang.String preSendCode, long eventTimeout)
task
in a new thread and ensures that any DOM modification performed by this task
is sent to the client when the task ends.
If lockDoc
is true this document is synchronized during
the task execution, but if lockDoc
is false the task code
must synchronize the document before any access.
In a long running task is highly recommended to set lockDoc
as false to avoid a long document lock.
task
- the task to execute in a new thread.lockDoc
- whether the document is synchronized by the framework.maxWait
- maximum time in milliseconds to wait until the task ends. 0 means unlimited wait.target
- optional target element usually useful along with ParamTransport
objects. May be null.listener
- the listener to receive the event when the client is going to be notified. May be null.commMode
- communication mode.extraParams
- optional client to server data transport and synchronization rules. May be null.preSendCode
- custom JavaScript code to execute before an event of this listener type is fired. May be null.eventTimeout
- the timeout for the event used to notify the client. If negative no timeout is defined.void addAsynchronousTask(java.lang.Runnable task, org.w3c.dom.events.EventListener listener)
task
in a new thread and ensures that any DOM modification performed by this task
is sent to the client when the task ends. The document is not locked and waits indefinitely.task
- the task to execute in a new thread.listener
- the listener to receive the event when the client is going to be notified. May be null.addAsynchronousTask(Runnable,boolean,int,EventTarget,EventListener,int,ParamTransport[],String,long)
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)
org.w3c.dom.events.EventListener
with the
document default communication mode and timeout, no extra parameters and no custom JavaScript code.target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addEventListener(EventTarget,String,EventListener,boolean)
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, int commMode)
org.w3c.dom.events.EventListener
with no extra
parameters and no custom JavaScript code, and document default event timeout.target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).commMode
- communication mode.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addEventListener(EventTarget ,String ,EventListener ,boolean ,int )
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, ParamTransport extraParam)
org.w3c.dom.events.EventListener
with
document default communication mode and timeout, the specified extra
parameter and no custom JavaScript code.target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).extraParam
- client to server data transport and synchronization rule.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addEventListener(EventTarget ,String ,EventListener ,boolean ,ParamTransport )
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, ParamTransport[] extraParams)
org.w3c.dom.events.EventListener
with
document default communication mode and timeout, the specified extra
parameters and no custom JavaScript code.target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).extraParams
- client to server data transport and synchronization rules.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addEventListener(EventTarget ,String ,EventListener ,boolean ,ParamTransport[] )
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, java.lang.String preSendCode)
org.w3c.dom.events.EventListener
with
document default communication mode and event timeout, no extra
parameters and the specified custom JavaScript code.target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).preSendCode
- custom JavaScript code to execute before an event of this listener type is fired.addEventListener(EventTarget,String,EventListener,boolean,int,ParamTransport[],String,long)
,
ItsNatDocument.addEventListener(EventTarget ,String ,EventListener ,boolean ,String )
void addEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, int commMode, ParamTransport[] extraParams, java.lang.String preSendCode, long eventTimeout)
org.w3c.dom.events.EventListener
.
When this listener is registered the server sends custom JavaScript code to register
a handler in the client side with the specified node target and DOM event type.
When an event is fired this handler forwards the client event to the server
and the registered listener receives an org.w3c.dom.events.Event
with
the same client event data.
If two or more listeners are registered sharing the same node target and event type, they all will receive the same event.
target
- target element. Can not be null.type
- the DOM event type name (click, change etc).listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).commMode
- communication mode.extraParams
- optional client to server data transport and synchronization rules. May be null.preSendCode
- custom JavaScript code to execute before an event of this listener type is fired. May be null.eventTimeout
- the timeout of asynchronous events. If negative no timeout is defined.removeEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean)
,
ItsNatDocument.addEventListener(EventTarget ,String ,EventListener ,boolean ,int ,ParamTransport[] ,String ,long )
,
CommMode
void removeEventListener(org.w3c.dom.events.EventTarget target, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)
target
- the target element. Can not be null.type
- the DOM event type name.listener
- the registered listener.useCapture
- event capture mode.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.removeEventListener(org.w3c.dom.events.EventTarget, java.lang.String, org.w3c.dom.events.EventListener, boolean)
void addMutationEventListener(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener, boolean useCapture)
org.w3c.dom.events.EventListener
to receive any node mutation
as a mutation event fired by the client, using the default communication mode and timeout of the document
and no custom JavaScript code.target
- target element. Can not be null.listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).addMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean,int,String,long)
,
ItsNatDocument.addMutationEventListener(org.w3c.dom.events.EventTarget, org.w3c.dom.events.EventListener, boolean)
void addMutationEventListener(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener, boolean useCapture, int commMode, java.lang.String preSendCode, long eventTimeout)
org.w3c.dom.events.EventListener
to receive any node mutation
as a mutation event fired by the client.
When a mutation event is received, this event carries the necessary data to synchronize the server target element with the client. After this automatic synchronization, the listener is called.
Current implementation does the following:
ParamTransport[] params = new ParamTransport[]{ new ClientMutation() }; addEventListener(target,"DOMAttrModified",listener,useCapture,commMode,params,preSendCode,eventTimeout); addEventListener(target,"DOMNodeInserted",listener,useCapture,commMode,params,preSendCode,eventTimeout); addEventListener(target,"DOMNodeRemoved",listener,useCapture,commMode,params,preSendCode,eventTimeout); addEventListener(target,"DOMCharacterDataModified",listener,useCapture,commMode,params,preSendCode,eventTimeout);
If the target is the org.w3c.dom.Document
object, every document change in the client
is automatically synchronized in the server.
Mutation events only works with some W3C browses like Mozilla/FireFox, Safari and Opera (MSIE 6 does not support W3C DOM mutation events).
target
- target element. Can not be null.listener
- the listener to receive events.useCapture
- if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).commMode
- communication mode.preSendCode
- custom JavaScript code to execute before an event of this listener type is fired. May be null.eventTimeout
- the timeout of asynchronous events. If negative no timeout is defined.removeMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean)
,
addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addMutationEventListener(EventTarget ,EventListener ,boolean ,int ,String ,long )
void removeMutationEventListener(org.w3c.dom.events.EventTarget target, org.w3c.dom.events.EventListener listener, boolean useCapture)
target
- the target element. Can not be null.listener
- the registered listener.useCapture
- event capture mode.addMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean,int,String,long)
,
ItsNatDocument.removeMutationEventListener(EventTarget ,EventListener ,boolean )
void addUserEventListener(org.w3c.dom.events.EventTarget target, java.lang.String name, org.w3c.dom.events.EventListener listener, int commMode, ParamTransport[] extraParams, java.lang.String preSendCode, long eventTimeout)
EventListener
.
When this listener is registered the server sends custom JavaScript code to register a handler in the client side with the specified node target and name.
User events are fired in the client calling the ItsNat JavaScript method
fireUserEvent(targetNode,name)
or dispatchUserEvent(targetNode,evt)
(where evt
is a special user event see Manual for more info).
For instance:
document.getItsNatDoc().fireUserEvent(document.body,"myUserAction");
Target node and name must be the same parameters used to register the listener.
If two or more listeners are registered sharing the same node target and name,
they all will receive the same event fired by fireUserEvent
with this
target/name pair. If a listener instance was already registered and is registered again
with the same target and name, this second call does nothing.
target
- target element. Can not be null.name
- the user defined event type name.listener
- the listener to receive events.commMode
- communication mode.extraParams
- optional client to server data transport and synchronization rules. May be null.preSendCode
- custom JavaScript code to execute before an event of this listener type is fired. May be null.eventTimeout
- the timeout of asynchronous events. If negative no timeout is defined.removeUserEventListener(org.w3c.dom.events.EventTarget,String,EventListener)
,
addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.addUserEventListener(org.w3c.dom.events.EventTarget, java.lang.String, org.w3c.dom.events.EventListener, int, org.itsnat.core.event.ParamTransport[], java.lang.String, long)
,
CommMode
void addUserEventListener(org.w3c.dom.events.EventTarget target, java.lang.String name, org.w3c.dom.events.EventListener listener)
EventListener
.
This method calls addUserEventListener(EventTarget,String,EventListener,int,ParamTransport[],String,long)
with the document default values (communication mode, event timeout) and no extra parameters and custom code.
target
- target element. Can not be null.name
- the user defined event type name.listener
- the listener to receive events.ItsNatDocument.addUserEventListener(EventTarget ,String ,EventListener )
void removeUserEventListener(org.w3c.dom.events.EventTarget target, java.lang.String name, org.w3c.dom.events.EventListener listener)
target
- the target element. Can not be null.name
- the user defined event type name.listener
- the registered listener.addUserEventListener(org.w3c.dom.events.EventTarget,String,EventListener,int,org.itsnat.core.event.ParamTransport[],String,long)
,
ItsNatDocument.removeUserEventListener(EventTarget ,String ,EventListener)
void addEventListener(org.w3c.dom.events.EventListener listener)
The listener is called before calling any DOM event listener registered in this client. This listener registry is passive, in no way the client is modified (no listener is registered on the client) and usually used for monitoring.
listener
- the listener to add.removeEventListener(EventListener)
,
ItsNatServlet.addEventListener(EventListener)
,
ItsNatDocumentTemplate.addEventListener(EventListener)
,
ItsNatDocument.addEventListener(org.w3c.dom.events.EventListener)
void removeEventListener(org.w3c.dom.events.EventListener listener)
listener
- the listener to remove.addEventListener(EventListener)
,
ItsNatDocument.removeEventListener(org.w3c.dom.events.EventListener)
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.