Java Doc for ItsNatDocument.java in  » Ajax » ItsNat » org » itsnat » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » ItsNat » org.itsnat.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.core.ItsNatDocument

All known Subclasses:   org.itsnat.impl.core.ItsNatDocumentImpl,
ItsNatDocument
public interface ItsNatDocument extends ItsNatUserData,ItsNatNode(Code)
Is the ItsNat wrapper of a org.w3c.dom.Document object. Usually represents a web page loaded by a client.

Provides many useful utilities to simulate "The Browser Is The Server" approach of ItsNat like event listener registries. Is the factory of DOM utility objects and ItsNat components.

ItsNat document objects are created using a DocumentTemplate as pattern and usually obtained calling ItsNatServletRequest.getItsNatDocument or ItsNatServletResponse.getItsNatDocument when a new document (page) is loading or calling org.itsnat.core.event.ItsNatEvent.getItsNatDocument when an AJAX event is received.

Is not thread save and any object depending on this document (DOM utility objects, components etc) is not thread save too. This is not a problem because any ItsNat request/response thread synchronizes this object before calling user defined code, user defined code executed by an ItsNat request/response thread may be unaware of synchronization isues.


author:
   Jose Maria Arranz Santamaria




Method Summary
public  voidaddAsynchronousTask(Runnable task, boolean lockDoc, int maxWait, long ajaxTimeout)
     Executes the specified task in a new thread and ensures that any DOM modification performed by this task is sent to the client asynchronously when the task ends.
public  voidaddAsynchronousTask(Runnable task, boolean lockDoc)
     Executes the specified task in a new thread and ensures that any DOM modification performed by this task is sent to the client asynchronously when the task ends.
public  voidaddCodeToSend(Object code)
     Add JavaScript code to send to any client (owner or viewers) bound to this document (pending code).
public  voidaddCodeToSendListener(CodeToSendListener listener)
     Registers a new CodeToSendListener, this listener is called every time ItsNatDocument.addCodeToSend(Object) is called.
public  voidaddContinueEventListener(EventTarget target, EventListener listener, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)
     Registers a "continue" EventListener.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture)
     Registers a new DOM org.w3c.dom.events.EventListener with the document default synchronization mode and AJAX timeout, no extra parameters and no custom JavaScript code.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, int syncMode)
     Registers a new DOM org.w3c.dom.events.EventListener with no extra parameters and no custom JavaScript code, and document default AJAX timeout.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, ParamTransport extraParam)
     Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, the specified extra parameter and no custom JavaScript code.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, ParamTransport[] extraParams)
     Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, the specified extra parameters and no custom JavaScript code.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, String preSendCode)
     Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, no extra parameters and the specified custom JavaScript code.
public  voidaddEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)
     Registers a new DOM org.w3c.dom.events.EventListener.
public  voidaddMutationEventListener(EventTarget target, 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 document synchronization mode and AJAX timeout and no custom JavaScript code.
public  voidaddMutationEventListener(EventTarget target, EventListener listener, boolean useCapture, int syncMode, String preSendCode, long ajaxTimeout)
     Registers a new DOM org.w3c.dom.events.EventListener to receive any node mutation as a mutation event fired by the client.
public  voidaddReferrerItsNatServletRequestListener(ItsNatServletRequestListener listener)
     Registers a new ItsNat referrer request listener.
public  voidaddRemoteControlEventListener(RemoteControlEventListener listener)
     Adds a remote control listener to this document.
public  voidaddUserEventListener(EventTarget target, String name, EventListener listener, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)
     Registers a "user" EventListener.
public  voidaddUserEventListener(EventTarget target, String name, EventListener listener)
     Registers a "user" EventListener.
public  ElementLabelRenderercreateDefaultElementLabelRenderer()
     Creates the default DOM element label renderer.
public  ElementListRenderercreateDefaultElementListRenderer()
     Creates the default DOM element list renderer.
public  ElementListStructurecreateDefaultElementListStructure()
     Creates the default DOM element list structure.
public  ElementRenderercreateDefaultElementRenderer()
     Creates the default DOM element renderer.
public  ElementTableRenderercreateDefaultElementTableRenderer()
     Creates the default DOM element table renderer.
public  ElementTableStructurecreateDefaultElementTableStructure()
     Creates the default DOM element table structure.
public  ElementTreeNodeRenderercreateDefaultElementTreeNodeRenderer()
     Creates the default DOM element table renderer.
public  ElementTreeNodeStructurecreateDefaultElementTreeNodeStructure()
     Creates the default DOM element tree node structure.
public  ElementLabelcreateElementLabel(Element parentElement, boolean removePattern, ElementLabelRenderer renderer)
     Creates a pattern based DOM element label.
public  ElementListcreateElementList(Element parentElement, boolean removePattern, ElementListStructure structure, ElementListRenderer renderer)
     Creates a pattern based DOM element list.
public  ElementListcreateElementList(Element parentElement, boolean removePattern)
     Creates a pattern based DOM element list.
public  ElementListFreecreateElementListFree(Element parentElement, boolean master)
     Creates a DOM element list manager.
public  ElementTablecreateElementTable(Element parentElement, boolean removePattern, ElementTableStructure structure, ElementTableRenderer renderer)
     Creates a pattern based DOM element table.
public  ElementTablecreateElementTable(Element parentElement, boolean removePattern)
     Creates a pattern based DOM element table.
public  ElementTableFreecreateElementTableFree(Element parentElement, boolean master)
     Creates a DOM element table manager.
public  ElementTreecreateElementTree(boolean treeTable, Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)
     Creates a pattern based DOM element tree.
public  ElementTreecreateElementTree(boolean treeTable, Element parentElement, boolean removePattern)
     Creates a pattern based DOM element tree.
public  ElementTreeNodecreateElementTreeNode(Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)
     Creates a pattern based DOM element tree node.
public  ElementTreeNodecreateElementTreeNode(Element parentElement, boolean removePattern)
     Creates a pattern based DOM element tree node.
public  ElementTreeNodeListcreateElementTreeNodeList(boolean treeTable, Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)
     Creates a pattern based rootless DOM element tree.
public  ElementTreeNodeListcreateElementTreeNodeList(boolean treeTable, Element parentElement, boolean removePattern)
     Creates a pattern based rootless DOM element tree.
public  ItsNatTimercreateItsNatTimer()
     Creates a timer utility object.
public  ItsNatVariableResolvercreateItsNatVariableResolver()
     Creates a variable resolver bound to this document.
public  voiddisableSendCode()
     Disables the ItsNatDocument.addCodeToSend(Object) method, no new code can be added to send to the client.
public  booleandispatchEvent(EventTarget target, Event evt)
     Dispatches the specified event to the specified node target.
public  booleandispatchEventLocally(EventTarget target, Event evt)
     Dispatches the specified event to the specified node target directly on the server.
public  voidenableSendCode()
     Enables the ItsNatDocument.addCodeToSend(Object) method, new code can be added to send to the client.
public  longgetAJAXTimeout()
     Returns the default timeout of asynchronous AJAX events.
public  ObjectgetArtifact(String name)
     Returns the artifact with the specified name.
Parameters:
  name - the artifact name to look for.
public  ObjectgetArtifact(String name, boolean cascade)
     Returns the artifact with the specified name.

If no artifact is found and cascade is true, the method DocumentTemplate.getArtifact(Stringboolean) is called with cascade set to true to continue searching.


Parameters:
  name - the artifact name to look for.
public  ObjectgetAttribute(String name)
     Returns the value associated to the specified attribute name.
public  EnumerationgetAttributeNames()
     Returns an enumeration with the registered attribute names and values.
public  ClientDocumentgetClientDocumentOwner()
     Returns the document proxy of the owner of this document.
public  DategetCreationDate()
     Returns the date when this object was created.
public  DateFormatgetDefaultDateFormat()
     Returns the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

The default value is defined by DocumentTemplate.getDefaultDateFormat

the default date format.
public  NumberFormatgetDefaultNumberFormat()
     Returns the default number format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

The default value is defined by DocumentTemplate.getDefaultNumberFormat

the default data format.
public  intgetDefaultSyncMode()
     Returns the default synchronous mode of AJAX events.
public  DocumentgetDocument()
     Returns the org.w3c.dom.Document wrapped by this object.
public  DocumentTemplategetDocumentTemplate()
     Returns the template this document is based on.
public  longgetEventDispatcherMaxWait()
     Returns the default max wait until a server fired event calling ClientDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Eventintlong) is processed by the client and returns.
public  StringgetId()
     Returns the client identity.
public  ItsNatComponentManagergetItsNatComponentManager()
     Returns the component manager utility.
public  ItsNatNodegetItsNatNode(Node node)
     Returns the ItsNatNode object wrapping the specified object.
public  ScriptUtilgetScriptUtil()
     Returns the scripting utility.
public  booleanisInvalid()
     Informs whether this document is invalid.
public  booleanisLoading()
     Informs whether this document is in the load phase.
public  booleanisSendCodeEnabled()
    
public  booleanisUsePatternMarkupToRender()
     Informs whether dom utils and components use by default the original (saved as pattern) markup to render.
public  voidregisterArtifact(String name, Object value)
     Registers an artifact with the specified name.
Parameters:
  name - the artifact name
Parameters:
  value - the artifact.
public  ObjectremoveArtifact(String name)
     Removes the artifact with the specified name.
Parameters:
  name - the artifact name to look for.
public  voidremoveAttribute(String name)
     Unregisters the specified attribute with the given name.
public  voidremoveCodeToSendListener(CodeToSendListener listener)
     Removes a previously registered CodeToSendListener.
public  voidremoveEventListener(EventTarget target, String type, EventListener listener, boolean useCapture)
     Removes the listener registration with the specified node target, name, listener and capture.
Parameters:
  target - the target element.
public  voidremoveMutationEventListener(EventTarget target, EventListener listener, boolean useCapture)
     Removes the mutation listener registration with the specified node target, listener and capture.
Parameters:
  target - the target element.
public  voidremoveReferrerItsNatServletRequestListener(ItsNatServletRequestListener listener)
     Unregisters the specified user defined referrer request listener.
public  voidremoveRemoteControlEventListener(RemoteControlEventListener listener)
     Removes the specified remote control listener.
public  voidremoveUserEventListener(EventTarget target, String name, EventListener listener)
     Removes the listener registration with the specified node target, name and listener.
Parameters:
  target - the target element.
public  voidsetAJAXTimeout(long timeout)
     Sets the default timeout of asynchronous AJAX events.
public  voidsetAttribute(String name, Object value)
     Registers the specified attribute name and value.
public  voidsetDefaultDateFormat(DateFormat format)
     Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
public  voidsetDefaultNumberFormat(NumberFormat format)
     Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
public  voidsetDefaultSyncMode(int syncMode)
     Sets the default synchronous mode of AJAX events.
public  voidsetEventDispatcherMaxWait(long wait)
     Sets the default max wait until a server fired event with ClientDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Eventintlong) is processed by the client and returns.
public  voidsetInvalid()
     Sets this document as invalid.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether dom utils and components use by default the original (saved as pattern) markup to render.



Method Detail
addAsynchronousTask
public void addAsynchronousTask(Runnable task, boolean lockDoc, int maxWait, long ajaxTimeout)(Code)
Executes the specified task in a new thread and ensures that any DOM modification performed by this task is sent to the client asynchronously when the task ends. Max wait is specified.

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.


Parameters:
  task - the task to execute in a new thread.
Parameters:
  lockDoc - whether the document is synchronized by the framework.
Parameters:
  maxWait - maximum time in milliseconds to wait until the task ends. 0 means unlimited wait.
Parameters:
  ajaxTimeout - the timeout for the AJAX request used to notify the client. If negative no timeout is defined.



addAsynchronousTask
public void addAsynchronousTask(Runnable task, boolean lockDoc)(Code)
Executes the specified task in a new thread and ensures that any DOM modification performed by this task is sent to the client asynchronously when the task ends. Waits indefinitely.
Parameters:
  task - the task to execute in a new thread.
Parameters:
  lockDoc - whether the document is synchronized by the framework.
See Also:   ItsNatDocument.addAsynchronousTask(Runnable,boolean,int,long)



addCodeToSend
public void addCodeToSend(Object code)(Code)
Add JavaScript code to send to any client (owner or viewers) bound to this document (pending code). This code is distributed to the clients calling ClientDocument.addCodeToSend(Object) .
Parameters:
  code - the code to send, Object.toString() is called to convert to string.
See Also:   ItsNatDocument.isSendCodeEnabled()
See Also:   org.itsnat.core.script.ScriptUtil
throws:
  ItsNatException - if no code can be added.



addCodeToSendListener
public void addCodeToSendListener(CodeToSendListener listener)(Code)
Registers a new CodeToSendListener, this listener is called every time ItsNatDocument.addCodeToSend(Object) is called.
Parameters:
  listener - the new listener.
See Also:   ItsNatDocument.removeCodeToSendListener(CodeToSendListener)



addContinueEventListener
public void addContinueEventListener(EventTarget target, EventListener listener, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)(Code)
Registers a "continue" EventListener.

When this listener is registered the server sends custom JavaScript code to fire automatically a org.itsnat.core.event.ContinueEvent 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.


Parameters:
  target - optional target element usually useful along with org.itsnat.core.event.ParamTransport objects. May be null.
Parameters:
  listener - the listener to receive the event.
Parameters:
  syncMode - synchronization mode.
Parameters:
  extraParams - optional client to server data transport and synchronization rules. May be null.
Parameters:
  preSendCode - custom JavaScript code to execute before an event of this listener type is fired. May be null.
Parameters:
  ajaxTimeout - the timeout of asynchronous AJAX events. If negative no timeout is defined.
See Also:   SyncMode



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture)(Code)
Registers a new DOM org.w3c.dom.events.EventListener with the document default synchronization mode and AJAX timeout, no extra parameters and no custom JavaScript code.
Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, int syncMode)(Code)
Registers a new DOM org.w3c.dom.events.EventListener with no extra parameters and no custom JavaScript code, and document default AJAX timeout.
Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  syncMode - synchronization mode.
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, ParamTransport extraParam)(Code)
Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, the specified extra parameter and no custom JavaScript code.
Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  extraParam - client to server data transport and synchronization rule.
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, ParamTransport[] extraParams)(Code)
Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, the specified extra parameters and no custom JavaScript code.
Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  extraParams - client to server data transport and synchronization rules.
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, String preSendCode)(Code)
Registers a new DOM org.w3c.dom.events.EventListener with document default synchronization mode and AJAX timeout, no extra parameters and the specified custom JavaScript code.
Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  preSendCode - custom JavaScript code to execute before an event of this listener type is fired.
See Also:   ItsNatDocument.addEventListener(EventTarget,String,EventListener,boolean,int,ParamTransport[],String,long)



addEventListener
public void addEventListener(EventTarget target, String type, EventListener listener, boolean useCapture, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)(Code)
Registers a new DOM 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.


Parameters:
  target - target element. Can not be null.
Parameters:
  type - the DOM event type name (click, change etc).
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  syncMode - synchronization mode.
Parameters:
  extraParams - optional client to server data transport and synchronization rules. May be null.
Parameters:
  preSendCode - custom JavaScript code to execute before an event of this listener type is fired. May be null.
Parameters:
  ajaxTimeout - the timeout of asynchronous AJAX events. If negative no timeout is defined.
See Also:   ItsNatDocument.removeEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean)
See Also:   SyncMode



addMutationEventListener
public void addMutationEventListener(EventTarget target, EventListener listener, boolean useCapture)(Code)
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 document synchronization mode and AJAX timeout and no custom JavaScript code.
Parameters:
  target - target element. Can not be null.
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
See Also:   ItsNatDocument.addMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean,int,String,long)



addMutationEventListener
public void addMutationEventListener(EventTarget target, EventListener listener, boolean useCapture, int syncMode, String preSendCode, long ajaxTimeout)(Code)
Registers a new DOM 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,syncMode,params,preSendCode,ajaxTimeout);
 addEventListener(target,"DOMNodeInserted",listener,useCapture,syncMode,params,preSendCode,ajaxTimeout);
 addEventListener(target,"DOMNodeRemoved",listener,useCapture,syncMode,params,preSendCode,ajaxTimeout);
 addEventListener(target,"DOMCharacterDataModified",listener,useCapture,syncMode,params,preSendCode,ajaxTimeout);        
 

If the target is the org.w3c.dom.Document object, every document change in the client us automatically synchronized in the server.

Mutation events only works with Mozilla/FireFox (MSIE 6 does not support W3C DOM mutation events).


Parameters:
  target - target element. Can not be null.
Parameters:
  listener - the listener to receive events.
Parameters:
  useCapture - if event capture is enabled. False is the most portable value (MSIE v6 does not support event capture).
Parameters:
  syncMode - synchronization mode.
Parameters:
  preSendCode - custom JavaScript code to execute before an event of this listener type is fired. May be null.
Parameters:
  ajaxTimeout - the timeout of asynchronous AJAX events. If negative no timeout is defined.
See Also:   ItsNatDocument.removeMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean)
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



addReferrerItsNatServletRequestListener
public void addReferrerItsNatServletRequestListener(ItsNatServletRequestListener listener)(Code)
Registers a new ItsNat referrer request listener. This listener is called when the framework loads a new target document and this document is being unloaded before the target request listeners are executed (referrer push).
Parameters:
  listener - the listener to register.
See Also:   ItsNatDocument.removeReferrerItsNatServletRequestListener(ItsNatServletRequestListener)
See Also:   
See Also:   DocumentTemplate.isReferrerPushEnabled



addRemoteControlEventListener
public void addRemoteControlEventListener(RemoteControlEventListener listener)(Code)
Adds a remote control listener to this document. This listener is called when a remote view/control is requested to control a document loaded using this template.
Parameters:
  listener - the listener to add.
See Also:   ItsNatDocument.removeRemoteControlEventListener(RemoteControlEventListener)
See Also:   ItsNatServlet.addRemoteControlEventListener(RemoteControlEventListener)
See Also:   DocumentTemplate.addRemoteControlEventListener(RemoteControlEventListener)



addUserEventListener
public void addUserEventListener(EventTarget target, String name, EventListener listener, int syncMode, ParamTransport[] extraParams, String preSendCode, long ajaxTimeout)(Code)
Registers a "user" 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,args). For instance:

document.getItsNatDoc().fireUserEvent(document.body,"myUserAction",[ document.title, document.location ]);

Target node and name must be the same parameters used to register the listener. org.itsnat.core.event.ParamTransport objects may be used to transport client data (args parameter).

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.


Parameters:
  target - target element. Can not be null.
Parameters:
  name - the user defined event type name.
Parameters:
  listener - the listener to receive events.
Parameters:
  syncMode - synchronization mode.
Parameters:
  extraParams - optional client to server data transport and synchronization rules. May be null.
Parameters:
  preSendCode - custom JavaScript code to execute before an event of this listener type is fired. May be null.
Parameters:
  ajaxTimeout - the timeout of asynchronous AJAX events. If negative no timeout is defined.
See Also:   ItsNatDocument.removeUserEventListener(org.w3c.dom.events.EventTarget,String,EventListener)
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)
See Also:   SyncMode



addUserEventListener
public void addUserEventListener(EventTarget target, String name, EventListener listener)(Code)
Registers a "user" EventListener.

This method calls ItsNatDocument.addUserEventListener(EventTarget,String,EventListener,int,ParamTransport[],String,long) with the document default values (sync mode, AJAX timeout) and no extra parameters and custom code.


Parameters:
  target - target element. Can not be null.
Parameters:
  name - the user defined event type name.
Parameters:
  listener - the listener to receive events.



createDefaultElementLabelRenderer
public ElementLabelRenderer createDefaultElementLabelRenderer()(Code)
Creates the default DOM element label renderer. This renderer uses the default org.itsnat.core.domutil.ElementRenderer to render the specified value. the default renderer.



createDefaultElementListRenderer
public ElementListRenderer createDefaultElementListRenderer()(Code)
Creates the default DOM element list renderer. This renderer uses the default org.itsnat.core.domutil.ElementRenderer to render the specified value. the default renderer.



createDefaultElementListStructure
public ElementListStructure createDefaultElementListStructure()(Code)
Creates the default DOM element list structure. This structure returns as content element the <td> element if the item parent is a <tr> otherwise the item parent element. the default structure.



createDefaultElementRenderer
public ElementRenderer createDefaultElementRenderer()(Code)
Creates the default DOM element renderer. This renderer writes the specified value as a string into the first found text node. the default renderer.



createDefaultElementTableRenderer
public ElementTableRenderer createDefaultElementTableRenderer()(Code)
Creates the default DOM element table renderer. This renderer uses the default org.itsnat.core.domutil.ElementRenderer to render the specified value. the default renderer.



createDefaultElementTableStructure
public ElementTableStructure createDefaultElementTableStructure()(Code)
Creates the default DOM element table structure. This structure returns as row content element the row parent element (itself), and as cell content element the cell parent element (itself). the default structure.



createDefaultElementTreeNodeRenderer
public ElementTreeNodeRenderer createDefaultElementTreeNodeRenderer()(Code)
Creates the default DOM element table renderer. This renderer uses the default org.itsnat.core.domutil.ElementRenderer to render a user value usually into the label element. the default renderer.



createDefaultElementTreeNodeStructure
public ElementTreeNodeStructure createDefaultElementTreeNodeStructure()(Code)
Creates the default DOM element tree node structure. This structure is flexible enough to deal with several scenarios like tree-table, no handle and icon etc.

The reference manual explains with examples how this default structure works.

the default structure.



createElementLabel
public ElementLabel createElementLabel(Element parentElement, boolean removePattern, ElementLabelRenderer renderer)(Code)
Creates a pattern based DOM element label. The content of the element is used as the pattern to render the first value.
Parameters:
  parentElement - the parent element of the label.
Parameters:
  removePattern - if true the current content is removed, otherwise the label shows the current content.
Parameters:
  renderer - the used label renderer. If null the default renderer is used. the element label.



createElementList
public ElementList createElementList(Element parentElement, boolean removePattern, ElementListStructure structure, ElementListRenderer renderer)(Code)
Creates a pattern based DOM element list. The first child element is used as the pattern to create new child elements.
Parameters:
  parentElement - the parent element of the list.
Parameters:
  removePattern - if true the current content (the pattern as minimun) is removed, otherwise the list represents the current content.
Parameters:
  structure - the used list structure. If null the default structure is used.
Parameters:
  renderer - the used list renderer. If null the default renderer is used. the element list.
See Also:   ItsNatDocument.createElementList(org.w3c.dom.Element,boolean)
See Also:   ItsNatDocument.createElementListFree(Element,boolean)



createElementList
public ElementList createElementList(Element parentElement, boolean removePattern)(Code)
Creates a pattern based DOM element list. The first child element is used as the pattern to create new child elements. The list uses the default structure and renderer.
Parameters:
  parentElement - the parent element of the list.
Parameters:
  removePattern - if true the current content (the pattern as minimun) is removed, otherwise the list represents the current content. the element list.
See Also:   ItsNatDocument.createElementList(org.w3c.dom.Element,boolean,org.itsnat.core.domutil.ElementListStructure,org.itsnat.core.domutil.ElementListRenderer)
See Also:   ItsNatDocument.createDefaultElementListStructure()
See Also:   ItsNatDocument.createDefaultElementListRenderer()



createElementListFree
public ElementListFree createElementListFree(Element parentElement, boolean master)(Code)
Creates a DOM element list manager. Initial DOM list may be not empty and child elements may have different tag names.
Parameters:
  parentElement - the parent element of the list.
Parameters:
  master - if true only the manager must be used to make structural changes (add, remove or replace elements), avoiding direct DOM manipulation. the element list.
See Also:   ItsNatDocument.createElementList(org.w3c.dom.Element,boolean,org.itsnat.core.domutil.ElementListStructure,org.itsnat.core.domutil.ElementListRenderer)
See Also:   



createElementTable
public ElementTable createElementTable(Element parentElement, boolean removePattern, ElementTableStructure structure, ElementTableRenderer renderer)(Code)
Creates a pattern based DOM element table. The first child element is used as the row pattern and the first element cell is the cell pattern used to create new cells (columns).
Parameters:
  parentElement - the parent element of the table.
Parameters:
  removePattern - if true the current content (the first row as minimu) is removed, otherwise the table represents the current content.
Parameters:
  structure - the used table structure. If null the default structure is used.
Parameters:
  renderer - the used table renderer. If null the default renderer is used. the element table.
See Also:   ItsNatDocument.createElementTable(org.w3c.dom.Element,boolean)
See Also:   ItsNatDocument.createElementTableFree(Element,boolean)



createElementTable
public ElementTable createElementTable(Element parentElement, boolean removePattern)(Code)
Creates a pattern based DOM element table. The first child element is used as the row pattern and the first element cell is the cell pattern used to create new cells (columns). The table uses the default structure and renderer.
Parameters:
  parentElement - the parent element of the table.
Parameters:
  removePattern - if true the current content (the first row as minimu) is removed, otherwise the table represents the current content. the element table.
See Also:   ItsNatDocument.createElementTable(org.w3c.dom.Element,boolean,org.itsnat.core.domutil.ElementTableStructure,org.itsnat.core.domutil.ElementTableRenderer)
See Also:   ItsNatDocument.createDefaultElementTableStructure()
See Also:   ItsNatDocument.createDefaultElementTableRenderer()



createElementTableFree
public ElementTableFree createElementTableFree(Element parentElement, boolean master)(Code)
Creates a DOM element table manager. Initial DOM table may be not empty and row elements and cells may have different tag names.
Parameters:
  parentElement - the parent element of the table.
Parameters:
  master - if true only the manager must be used to make structural changes (add, remove or replace elements), avoiding direct DOM manipulation. the element table.
See Also:   ItsNatDocument.createElementTable(org.w3c.dom.Element,boolean,org.itsnat.core.domutil.ElementTableStructure,org.itsnat.core.domutil.ElementTableRenderer)
See Also:   



createElementTree
public ElementTree createElementTree(boolean treeTable, Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)(Code)
Creates a pattern based DOM element tree. The root node is the only one top level node and is not fixed (removable).
Parameters:
  treeTable - if true the tree is a tree-table structurally.
Parameters:
  parentElement - the parent element of the tree.
Parameters:
  removePattern - if true the first node (the root node used as pattern) is removed, otherwise this node is the root.
Parameters:
  structure - the used tree node structure. If null the default structure is used.
Parameters:
  renderer - the used tree node renderer. If null the default renderer is used. the element tree.
See Also:   ItsNatDocument.createElementTree(boolean,Element,boolean)
See Also:   
See Also:   ItsNatDocument.createElementTreeNode(org.w3c.dom.Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createElementTreeNodeList(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)



createElementTree
public ElementTree createElementTree(boolean treeTable, Element parentElement, boolean removePattern)(Code)
Creates a pattern based DOM element tree. The root node is the only one top level node and is not fixed (removable). The tree uses the default structure and renderer.
Parameters:
  treeTable - if true the tree is a tree-table structurally.
Parameters:
  parentElement - the parent element of the tree.
Parameters:
  removePattern - if true the first tree node (used as pattern) is removed, otherwise this node is the root. the element tree.
See Also:   ItsNatDocument.createElementTree(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createDefaultElementTreeNodeStructure()
See Also:   ItsNatDocument.createDefaultElementTreeNodeRenderer()



createElementTreeNode
public ElementTreeNode createElementTreeNode(Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)(Code)
Creates a pattern based DOM element tree node. This node is the fixed root of the tree.
Parameters:
  parentElement - the parent element of the node and tree.
Parameters:
  removePattern - if true the pattern of child nodes (the first child if any) is removed, otherwise the child node list represents the current child node list.
Parameters:
  structure - the used tree node structure. If null the default structure is used.
Parameters:
  renderer - the used tree node renderer. If null the default renderer is used. the element tree node.
See Also:   ItsNatDocument.createElementTreeNode(org.w3c.dom.Element,boolean)
See Also:   ItsNatDocument.createElementTree(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createElementTreeNodeList(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)



createElementTreeNode
public ElementTreeNode createElementTreeNode(Element parentElement, boolean removePattern)(Code)
Creates a pattern based DOM element tree node. This node is the fixed (non-removable) root of the tree. The tree node uses the default structure and renderer.
Parameters:
  parentElement - the parent element of the node and tree.
Parameters:
  removePattern - if true the pattern of child nodes (the first child if any) is removed, otherwise the child node list represents the current child node list. the element tree node.
See Also:   ItsNatDocument.createElementTreeNode(org.w3c.dom.Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createDefaultElementTreeNodeStructure()
See Also:   ItsNatDocument.createDefaultElementTreeNodeRenderer()



createElementTreeNodeList
public ElementTreeNodeList createElementTreeNodeList(boolean treeTable, Element parentElement, boolean removePattern, ElementTreeNodeStructure structure, ElementTreeNodeRenderer renderer)(Code)
Creates a pattern based rootless DOM element tree.
Parameters:
  treeTable - if true the tree is a tree-table structurally.
Parameters:
  parentElement - the parent element of the tree.
Parameters:
  removePattern - if true the first child node is removed, otherwise the tree represents the current content (current top child nodes).
Parameters:
  structure - the used tree node structure. If null the default structure is used.
Parameters:
  renderer - the used tree node renderer. If null the default renderer is used. the rootless element tree.
See Also:   ItsNatDocument.createElementTreeNodeList(boolean,Element,boolean)
See Also:   
See Also:   ItsNatDocument.createElementTreeNode(org.w3c.dom.Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createElementTree(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)



createElementTreeNodeList
public ElementTreeNodeList createElementTreeNodeList(boolean treeTable, Element parentElement, boolean removePattern)(Code)
Creates a pattern based rootless DOM element tree. The tree uses the default structure and renderer.
Parameters:
  treeTable - if true the tree is a tree-table structurally.
Parameters:
  parentElement - the parent element of the tree.
Parameters:
  removePattern - if true the first child node is removed, otherwise the tree represents the current content (current top child nodes). the rootless element tree.
See Also:   ItsNatDocument.createElementTreeNodeList(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
See Also:   ItsNatDocument.createDefaultElementTreeNodeStructure()
See Also:   ItsNatDocument.createDefaultElementTreeNodeRenderer()



createItsNatTimer
public ItsNatTimer createItsNatTimer()(Code)
Creates a timer utility object. a timer object.



createItsNatVariableResolver
public ItsNatVariableResolver createItsNatVariableResolver()(Code)
Creates a variable resolver bound to this document. a variable resolver bound to this document.



disableSendCode
public void disableSendCode()(Code)
Disables the ItsNatDocument.addCodeToSend(Object) method, no new code can be added to send to the client.
See Also:   ItsNatDocument.enableSendCode()



dispatchEvent
public boolean dispatchEvent(EventTarget target, Event evt) throws EventException(Code)
Dispatches the specified event to the specified node target.

If the current thread was not started calling ClientDocument.startEventDispatcherThread(Runnable) current implementation calls ItsNatDocument.dispatchEventLocally(EventTarget,Event) , otherwise calls ClientDocument.dispatchEvent(EventTargetEventintlong) using document default synchronous mode ( ItsNatDocument.getDefaultSyncMode() ) and AJAX timeout ( ItsNatDocument.getAJAXTimeout() ).

This method is called by the enhanced version of the method org.w3c.dom.events.EventTarget#dispatchEvent(Event) called with the enhanced node returned by ItsNatDocument.getItsNatNode(Node)


Parameters:
  target - the event target DOM object.
Parameters:
  evt - the DOM event to send to target.



dispatchEventLocally
public boolean dispatchEventLocally(EventTarget target, Event evt) throws EventException(Code)
Dispatches the specified event to the specified node target directly on the server.

The event is routed across the server DOM tree and dispatched to listeners as specified by the W3C DOM Events standard including bubbling and capturing.


Parameters:
  target - the event target DOM object.
Parameters:
  evt - the DOM event to send to target.



enableSendCode
public void enableSendCode()(Code)
Enables the ItsNatDocument.addCodeToSend(Object) method, new code can be added to send to the client.
See Also:   ItsNatDocument.disableSendCode()



getAJAXTimeout
public long getAJAXTimeout()(Code)
Returns the default timeout of asynchronous AJAX events.

This feature is ignored in synchronous AJAX events

When an unfinished AJAX request takes more time than the specified timeout, the request is aborted.

The default value is defined by DocumentTemplate.getAJAXTimeout

the timeout of asynchronous AJAX events in miliseconds.
See Also:   ItsNatDocument.setAJAXTimeout(long)



getArtifact
public Object getArtifact(String name)(Code)
Returns the artifact with the specified name.
Parameters:
  name - the artifact name to look for. the artifact or null if not found.
See Also:   ItsNatDocument.registerArtifact(String,Object)
See Also:   ItsNatDocument.getArtifact(String,boolean)



getArtifact
public Object getArtifact(String name, boolean cascade)(Code)
Returns the artifact with the specified name.

If no artifact is found and cascade is true, the method DocumentTemplate.getArtifact(Stringboolean) is called with cascade set to true to continue searching.


Parameters:
  name - the artifact name to look for. the artifact or null if not found.
See Also:   ItsNatDocument.getArtifact(String)



getAttribute
public Object getAttribute(String name)(Code)
Returns the value associated to the specified attribute name.

This method is symmetric to ServletRequest.getAttribute(String) and ServletContext.getAttribute(String).

The purpose is to provide a document level attribute registry to complement ServletRequest and ServletContext attribute registries.

Is called by ItsNatVariableResolver.getVariable(String) when the variable resolver was created using ItsNatDocument.createItsNatVariableResolver() and does not contain the specified variable name.


Parameters:
  name - the attribute name to search. the attribute value of null if no attribute exists with the given name.
See Also:   ItsNatDocument.setAttribute(String,Object)
See Also:   ItsNatDocument.getAttributeNames()
See Also:   ItsNatDocument.removeAttribute(String)



getAttributeNames
public Enumeration getAttributeNames()(Code)
Returns an enumeration with the registered attribute names and values.

This method is symmetric to ServletRequest.getAttributeNames() and ServletContext.getAttributeNames().

an enumeration with the registered attributes.
See Also:   ItsNatDocument.getAttribute(String)



getClientDocumentOwner
public ClientDocument getClientDocumentOwner()(Code)
Returns the document proxy of the owner of this document. This object represents the browser document/page that requested (loaded) this document by first time (the owner). the document proxy of the owner of this document.



getCreationDate
public Date getCreationDate()(Code)
Returns the date when this object was created. the creation date.



getDefaultDateFormat
public DateFormat getDefaultDateFormat()(Code)
Returns the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

The default value is defined by DocumentTemplate.getDefaultDateFormat

the default date format.
See Also:   ItsNatDocument.setDefaultDateFormat(DateFormat)



getDefaultNumberFormat
public NumberFormat getDefaultNumberFormat()(Code)
Returns the default number format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

The default value is defined by DocumentTemplate.getDefaultNumberFormat

the default data format.
See Also:   ItsNatDocument.setDefaultNumberFormat(NumberFormat)



getDefaultSyncMode
public int getDefaultSyncMode()(Code)
Returns the default synchronous mode of AJAX events. Is used to new event listeners when no sync mode is specified.

The default value is defined by DocumentTemplate.getDefaultSyncMode

the synchronous mode.
See Also:   ItsNatDocument.setDefaultSyncMode(int)
See Also:   SyncMode



getDocument
public Document getDocument()(Code)
Returns the org.w3c.dom.Document wrapped by this object. This is the original Xerces document. the wrapped Xerces Document object.



getDocumentTemplate
public DocumentTemplate getDocumentTemplate()(Code)
Returns the template this document is based on. the template of this document.



getEventDispatcherMaxWait
public long getEventDispatcherMaxWait()(Code)
Returns the default max wait until a server fired event calling ClientDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Eventintlong) is processed by the client and returns.

The default value is defined by DocumentTemplate.getEventDispatcherMaxWait

the default max wait in milliseconds.
See Also:   ItsNatDocument.setEventDispatcherMaxWait(long)
See Also:   ItsNatDocument.getItsNatNode(org.w3c.dom.Node)



getId
public String getId()(Code)
Returns the client identity. This value is unique per 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.

the identity value.



getItsNatComponentManager
public ItsNatComponentManager getItsNatComponentManager()(Code)
Returns the component manager utility. the component manager.



getItsNatNode
public ItsNatNode getItsNatNode(Node node)(Code)
Returns the ItsNatNode object wrapping the specified object. The returned object instance is ever the same for every concrete node and can be casted to org.w3c.dom.Node.

If the specified node is already an ItsNatNode returns self. the wrapper node.




getScriptUtil
public ScriptUtil getScriptUtil()(Code)
Returns the scripting utility. the scripting utility.



isInvalid
public boolean isInvalid()(Code)
Informs whether this document is invalid.

The document is marked as invalid when is unloaded (no more attached to a browser document/page). Non-HTML (XML) documents are automatically invalidated after the XML generation.

If invalid the document is not found anymore on session registry ( ItsNatSession.getItsNatDocumentById(String) ). true if this document is invalid.
See Also:   ItsNatDocument.setInvalid()




isLoading
public boolean isLoading()(Code)
Informs whether this document is in the load phase. true if this document is in the load phase.
See Also:   org.itsnat.core.event.ItsNatServletRequestListener.processRequest(ItsNatServletRequestItsNatServletResponse)



isSendCodeEnabled
public boolean isSendCodeEnabled()(Code)
Informs whether JavaScript code can be added to send to the client calling ItsNatDocument.addCodeToSend(Object) true if new code can be added.
See Also:   ItsNatDocument.disableSendCode()



isUsePatternMarkupToRender
public boolean isUsePatternMarkupToRender()(Code)
Informs whether dom utils and components use by default the original (saved as pattern) markup to render.

The default value is defined by DocumentTemplate.isUsePatternMarkupToRender

true if by default the original markup is used.
See Also:   ItsNatDocument.setUsePatternMarkupToRender(boolean)



registerArtifact
public void registerArtifact(String name, Object value)(Code)
Registers an artifact with the specified name.
Parameters:
  name - the artifact name
Parameters:
  value - the artifact.
See Also:   ItsNatDocument.getArtifact(String)
See Also:   ItsNatDocument.removeArtifact(String)
See Also:   org.itsnat.core.NameValue



removeArtifact
public Object removeArtifact(String name)(Code)
Removes the artifact with the specified name.
Parameters:
  name - the artifact name to look for. the removed artifact.
See Also:   ItsNatDocument.registerArtifact(String,Object)



removeAttribute
public void removeAttribute(String name)(Code)
Unregisters the specified attribute with the given name.

This method is symmetric to ServletRequest.removeAttribute(String) and ServletContext.removeAttribute(String).


Parameters:
  name - the attribute name.
See Also:   ItsNatDocument.getAttribute(String)



removeCodeToSendListener
public void removeCodeToSendListener(CodeToSendListener listener)(Code)
Removes a previously registered CodeToSendListener.
Parameters:
  listener - the new listener.
See Also:   ItsNatDocument.addCodeToSendListener(CodeToSendListener)



removeEventListener
public void removeEventListener(EventTarget target, String type, EventListener listener, boolean useCapture)(Code)
Removes the listener registration with the specified node target, name, listener and capture.
Parameters:
  target - the target element. Can not be null.
Parameters:
  type - the DOM event type name.
Parameters:
  listener - the registered listener.
Parameters:
  useCapture - event capture mode.
See Also:   ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,org.itsnat.core.event.ParamTransport[],String,long)



removeMutationEventListener
public void removeMutationEventListener(EventTarget target, EventListener listener, boolean useCapture)(Code)
Removes the mutation listener registration with the specified node target, listener and capture.
Parameters:
  target - the target element. Can not be null.
Parameters:
  listener - the registered listener.
Parameters:
  useCapture - event capture mode.
See Also:   ItsNatDocument.addMutationEventListener(org.w3c.dom.events.EventTarget,org.w3c.dom.events.EventListener,boolean,int,String,long)



removeReferrerItsNatServletRequestListener
public void removeReferrerItsNatServletRequestListener(ItsNatServletRequestListener listener)(Code)
Unregisters the specified user defined referrer request listener.
Parameters:
  listener - the listener to remove.
See Also:   ItsNatDocument.addReferrerItsNatServletRequestListener(ItsNatServletRequestListener)
See Also:   



removeRemoteControlEventListener
public void removeRemoteControlEventListener(RemoteControlEventListener listener)(Code)
Removes the specified remote control listener.
Parameters:
  listener - the listener to remove.
See Also:   ItsNatDocument.addRemoteControlEventListener(RemoteControlEventListener)



removeUserEventListener
public void removeUserEventListener(EventTarget target, String name, EventListener listener)(Code)
Removes the listener registration with the specified node target, name and listener.
Parameters:
  target - the target element. Can not be null.
Parameters:
  name - the user defined event type name.
Parameters:
  listener - the registered listener.
See Also:   ItsNatDocument.addUserEventListener(org.w3c.dom.events.EventTarget,String,EventListener,int,org.itsnat.core.event.ParamTransport[],String,long)



setAJAXTimeout
public void setAJAXTimeout(long timeout)(Code)
Sets the default timeout of asynchronous AJAX events.
Parameters:
  timeout - the new timeout. If negative no timeout is defined.
See Also:   ItsNatDocument.getAJAXTimeout()



setAttribute
public void setAttribute(String name, Object value)(Code)
Registers the specified attribute name and value.

This method is symmetric to ServletRequest.setAttribute(String,Object) and ServletContext.setAttribute(String,Object).


Parameters:
  name - the attribute name.
Parameters:
  value - the attribute value.
See Also:   ItsNatDocument.getAttribute(String)



setDefaultDateFormat
public void setDefaultDateFormat(DateFormat format)(Code)
Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
Parameters:
  format - the default data format.
See Also:   ItsNatDocument.getDefaultDateFormat()



setDefaultNumberFormat
public void setDefaultNumberFormat(NumberFormat format)(Code)
Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
Parameters:
  format - the default data format.
See Also:   ItsNatDocument.getDefaultNumberFormat()



setDefaultSyncMode
public void setDefaultSyncMode(int syncMode)(Code)
Sets the default synchronous mode of AJAX events. Current defined event listeners are not affected.
Parameters:
  syncMode - the new synchronous mode.
See Also:   ItsNatDocument.getDefaultSyncMode()



setEventDispatcherMaxWait
public void setEventDispatcherMaxWait(long wait)(Code)
Sets the default max wait until a server fired event with ClientDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Eventintlong) is processed by the client and returns.
Parameters:
  wait - the default max wait in milliseconds.
See Also:   ItsNatDocument.getEventDispatcherMaxWait()



setInvalid
public void setInvalid()(Code)
Sets this document as invalid.
See Also:   ItsNatDocument.isInvalid()



setUsePatternMarkupToRender
public void setUsePatternMarkupToRender(boolean value)(Code)
Sets whether dom utils and components use by default the original (saved as pattern) markup to render.
Parameters:
  value - true to enable the use of original markup to render.
See Also:   ItsNatDocument.isUsePatternMarkupToRender()



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.