Java Doc for DocumentTemplate.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.DocumentTemplate

All known Subclasses:   org.itsnat.impl.core.DocumentTemplateImpl,
DocumentTemplate
public interface DocumentTemplate extends MarkupTemplate(Code)
Represents a document (page) template. Concrete documents are created using this template.
See Also:   ItsNatServlet.registerDocumentTemplate(StringStringString)
See Also:   ItsNatServlet.getDocumentTemplate(String)
author:
   Jose Maria Arranz Santamaria




Method Summary
public  voidaddCreateItsNatComponentListener(CreateItsNatComponentListener listener)
     Adds a new user defined component factory.
public  voidaddItsNatServletRequestListener(ItsNatServletRequestListener listener)
     Registers a new ItsNat request listener.
public  voidaddRemoteControlEventListener(RemoteControlEventListener listener)
     Adds a remote control listener to this template.
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 ItsNatServletConfig.getArtifact(String) is called to continue searching.


Parameters:
  name - the artifact name to look for.
public  DateFormatgetDefaultDateFormat()
     Returns the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

The default value is defined by ItsNatServletConfig.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 ItsNatServletConfig.getDefaultNumberFormat

the default data format.
public  intgetDefaultSyncMode()
     Returns the default synchronous mode of AJAX events.
public  longgetEventDispatcherMaxWait()
     Returns the default max wait until a server fired event with ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.getEventDispatcherMaxWait

the default max wait in milliseconds.
public  StringgetFrameworkScriptFilesBasePath()
     Returns the relative web path directory where the necessary framework JavaScript files are located.
public  intgetUseGZip()
     Returns whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

The default value is defined by ItsNatServletConfig.getUseGZip

the bitwise value containing whether gzip is used to encode JavaScript code and/or markup.
public  booleanisAJAXEnabled()
     Informs whether AJAX events are enabled.

The default value is defined by ItsNatServletConfig.isAJAXEnabled

This feature only affects to (X)HTML documents.

true if AJAX is enabled.
public  booleanisAddFrameworkScriptFiles()
     Informs whether the necessary framework JavaScript files are included into the page automatically.
public  booleanisAutoBuildComponents()
     Informs whether components are build automatically using the necessary markup declarations.
public  booleanisAutoCleanEventListeners()
     Informs whether the auto clean event listeners mode is enabled.
public  booleanisFastLoadMode()
     Informs whether the fast load mode is enabled.
public  booleanisLoadScriptInline()
     Informs whether the initial JavaScript code is sent inline into the loaded page or is loaded externally.
public  booleanisNodeCacheEnabled()
     Informs whether the speed oriented node cache is enabled.
public  booleanisReferrerEnabled()
     Informs whether referrer feature is enabled by default.
public  booleanisReferrerPushEnabled()
     Informs whether referrer "push" feature is enabled by default.
public  booleanisScriptingEnabled()
     Informs whether JavaScript is enabled.
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  voidremoveCreateItsNatComponentListener(CreateItsNatComponentListener listener)
     Removes the specified user defined component factory.
public  voidremoveItsNatServletRequestListener(ItsNatServletRequestListener listener)
     Unregisters the specified user defined request listener.
public  voidremoveRemoteControlEventListener(RemoteControlEventListener listener)
     Removes the specified remote control listener.
public  voidsetAJAXEnabled(boolean enabled)
     Sets whether AJAX events are enabled.
public  voidsetAJAXTimeout(long timeout)
     Sets the default timeout of asynchronous AJAX events.
public  voidsetAddFrameworkScriptFiles(boolean value)
     Sets whether the necessary framework JavaScript files are included into the page automatically.
public  voidsetAutoBuildComponents(boolean value)
     Sets whether components are build automatically using the necessary markup declarations.
public  voidsetAutoCleanEventListeners(boolean enabled)
     Sets whether the auto clean event listeners mode is enabled.
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 ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.
public  voidsetFastLoadMode(boolean fastLoadMode)
     Sets whether fast load mode is used.
public  voidsetFrameworkScriptFilesBasePath(String path)
     Returns the relative web path where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.
public  voidsetLoadScriptInline(boolean value)
     Sets the initial JavaScript code is sent inline into the loaded page or is loaded externally.
public  voidsetNodeCacheEnabled(boolean enable)
     Sets whether the speed oriented node cache is enabled.
public  voidsetReferrerEnabled(boolean enabled)
     Sets whether referrer feature is enabled by default.
public  voidsetReferrerPushEnabled(boolean enabled)
     Sets whether referrer "push" feature is enabled by default.
public  voidsetScriptingEnabled(boolean enabled)
     Sets whether JavaScript is enabled.
public  voidsetUseGZip(int value)
     Sets whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether dom utils and components use by default the original (saved as pattern) markup to render.



Method Detail
addCreateItsNatComponentListener
public void addCreateItsNatComponentListener(CreateItsNatComponentListener listener)(Code)
Adds a new user defined component factory. This listener is called when the framework needs to create a component instance.
Parameters:
  listener - the listener factory to register.
See Also:   DocumentTemplate.removeCreateItsNatComponentListener(CreateItsNatComponentListener)
See Also:   ItsNatServlet.addCreateItsNatComponentListener(CreateItsNatComponentListener)



addItsNatServletRequestListener
public void addItsNatServletRequestListener(ItsNatServletRequestListener listener)(Code)
Registers a new ItsNat request listener. This listener is called when the framework loads a new requested document using this template or an AJAX event is received with a document target loaded by this template.
Parameters:
  listener - the listener register.
See Also:   DocumentTemplate.removeItsNatServletRequestListener(ItsNatServletRequestListener)
See Also:   
See Also:   ItsNatServlet.addItsNatServletRequestListener(ItsNatServletRequestListener)



addRemoteControlEventListener
public void addRemoteControlEventListener(RemoteControlEventListener listener)(Code)
Adds a remote control listener to this template. This listener is called when a remote view/control is requested to control a document loaded using this template.

The listener is called before calling the document registered listener counterparts (if defined).


Parameters:
  listener - the listener to add.
See Also:   DocumentTemplate.removeRemoteControlEventListener(RemoteControlEventListener)
See Also:   ItsNatServlet.addRemoteControlEventListener(RemoteControlEventListener)
See Also:   ItsNatDocument.addRemoteControlEventListener(RemoteControlEventListener)



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

This feature only affects to (X)HTML documents and 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 ItsNatServletConfig.getAJAXTimeout

the timeout of asynchronous AJAX events in miliseconds.
See Also:   DocumentTemplate.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:   DocumentTemplate.registerArtifact(String,Object)
See Also:   DocumentTemplate.getArtifact(String,boolean)
See Also:   



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 ItsNatServletConfig.getArtifact(String) is called to continue searching.


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



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 ItsNatServletConfig.getDefaultDateFormat

the default date format.
See Also:   DocumentTemplate.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 ItsNatServletConfig.getDefaultNumberFormat

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



getDefaultSyncMode
public int getDefaultSyncMode()(Code)
Returns the default synchronous mode of AJAX events.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.getDefaultSyncMode

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



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

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.getEventDispatcherMaxWait

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



getFrameworkScriptFilesBasePath
public String getFrameworkScriptFilesBasePath()(Code)
Returns the relative web path directory where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.

For instance: is the path is "js" framework files must be located in: http://://js

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.getFrameworkScriptFilesBasePath

the relative web path of framework files.
See Also:   DocumentTemplate.isAddFrameworkScriptFiles()
See Also:   DocumentTemplate.setFrameworkScriptFilesBasePath(String)



getUseGZip
public int getUseGZip()(Code)
Returns whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

The default value is defined by ItsNatServletConfig.getUseGZip

the bitwise value containing whether gzip is used to encode JavaScript code and/or markup.
See Also:   DocumentTemplate.setUseGZip(int)



isAJAXEnabled
public boolean isAJAXEnabled()(Code)
Informs whether AJAX events are enabled.

The default value is defined by ItsNatServletConfig.isAJAXEnabled

This feature only affects to (X)HTML documents.

true if AJAX is enabled.
See Also:   DocumentTemplate.setAJAXEnabled(boolean)



isAddFrameworkScriptFiles
public boolean isAddFrameworkScriptFiles()(Code)
Informs whether the necessary framework JavaScript files are included into the page automatically.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.isAddFrameworkScriptFiles

true if framework files are included automatically.
See Also:   DocumentTemplate.setAddFrameworkScriptFiles(boolean)



isAutoBuildComponents
public boolean isAutoBuildComponents()(Code)
Informs whether components are build automatically using the necessary markup declarations.

If this feature is enabled any component registered into the component manager and associated to a DOM element being removed from the tree is removed and disposed automatically.

The default value is defined by ItsNatServletConfig.isAutoBuildComponents

true if automatic component build is enabled.
See Also:   DocumentTemplate.setAutoBuildComponents(boolean)



isAutoCleanEventListeners
public boolean isAutoCleanEventListeners()(Code)
Informs whether the auto clean event listeners mode is enabled.

The default value is defined by ItsNatServletConfig.isAutoCleanEventListeners

This feature only affects to (X)HTML documents.

true if enabled.
See Also:   DocumentTemplate.setAutoCleanEventListeners(boolean)



isFastLoadMode
public boolean isFastLoadMode()(Code)
Informs whether the fast load mode is enabled.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.isFastLoadMode

true if fast mode is enabled.
See Also:   DocumentTemplate.setFastLoadMode(boolean)



isLoadScriptInline
public boolean isLoadScriptInline()(Code)
Informs whether the initial JavaScript code is sent inline into the loaded page or is loaded externally.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.isLoadScriptInline

true if fast mode is enabled.
See Also:   DocumentTemplate.setLoadScriptInline(boolean)



isNodeCacheEnabled
public boolean isNodeCacheEnabled()(Code)
Informs whether the speed oriented node cache is enabled.

This feature only affects to (X)HTML documents.

The default value is defined by ItsNatServletConfig.isNodeCacheEnabled

true if node cache is enabled.
See Also:   DocumentTemplate.setNodeCacheEnabled(boolean)



isReferrerEnabled
public boolean isReferrerEnabled()(Code)
Informs whether referrer feature is enabled by default.

The default value is defined by ItsNatServletConfig.isReferrerEnabled

This feature only affects to (X)HTML documents (because requires AJAX).

This feature only works if AJAX is enabled.

true if referrer is enabled.
See Also:   DocumentTemplate.setReferrerEnabled(boolean)
See Also:   DocumentTemplate.isAJAXEnabled()
See Also:   ItsNatServletRequest.getItsNatDocumentReferrer



isReferrerPushEnabled
public boolean isReferrerPushEnabled()(Code)
Informs whether referrer "push" feature is enabled by default.

The default value is defined by ItsNatServletConfig.isReferrerPushEnabled

true if referrer "push" is enabled, if false documents created with this template can not be accessed by the referrer.
See Also:   DocumentTemplate.setReferrerPushEnabled(boolean)
See Also:   DocumentTemplate.isReferrerEnabled()
See Also:   ItsNatDocument.addReferrerItsNatServletRequestListener(ItsNatServletRequestListener)



isScriptingEnabled
public boolean isScriptingEnabled()(Code)
Informs whether JavaScript is enabled.

The default value is defined by ItsNatServletConfig.isScriptingEnabled

This feature only affects to (X)HTML documents.

true if AJAX is enabled.
See Also:   DocumentTemplate.setScriptingEnabled(boolean)



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 ItsNatServletConfig.isUsePatternMarkupToRender

true if by default the original markup is used.
See Also:   DocumentTemplate.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:   DocumentTemplate.getArtifact(String)
See Also:   DocumentTemplate.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:   DocumentTemplate.registerArtifact(String,Object)



removeCreateItsNatComponentListener
public void removeCreateItsNatComponentListener(CreateItsNatComponentListener listener)(Code)
Removes the specified user defined component factory.
Parameters:
  listener - the listener factory to remove.
See Also:   DocumentTemplate.addCreateItsNatComponentListener(CreateItsNatComponentListener)



removeItsNatServletRequestListener
public void removeItsNatServletRequestListener(ItsNatServletRequestListener listener)(Code)
Unregisters the specified user defined request listener.
Parameters:
  listener - the request listener to remove.
See Also:   DocumentTemplate.addItsNatServletRequestListener(ItsNatServletRequestListener)
See Also:   



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



setAJAXEnabled
public void setAJAXEnabled(boolean enabled)(Code)
Sets whether AJAX events are enabled.
Parameters:
  enabled - if AJAX is enabled.
See Also:   DocumentTemplate.isAJAXEnabled()



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:   DocumentTemplate.getAJAXTimeout()



setAddFrameworkScriptFiles
public void setAddFrameworkScriptFiles(boolean value)(Code)
Sets whether the necessary framework JavaScript files are included into the page automatically.
Parameters:
  value - true to include the framework files automatically.
See Also:   DocumentTemplate.isAddFrameworkScriptFiles()



setAutoBuildComponents
public void setAutoBuildComponents(boolean value)(Code)
Sets whether components are build automatically using the necessary markup declarations.
Parameters:
  value - true to enable automatic component build.
See Also:   DocumentTemplate.isAutoBuildComponents()



setAutoCleanEventListeners
public void setAutoCleanEventListeners(boolean enabled)(Code)
Sets whether the auto clean event listeners mode is enabled.
Parameters:
  enabled - if auto clean event listeners is enabled.
See Also:   DocumentTemplate.isAutoCleanEventListeners()



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:   DocumentTemplate.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:   DocumentTemplate.getDefaultNumberFormat()



setDefaultSyncMode
public void setDefaultSyncMode(int syncMode)(Code)
Sets the default synchronous mode of AJAX events.
Parameters:
  syncMode - the new synchronous mode.
See Also:   DocumentTemplate.getDefaultSyncMode()



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



setFastLoadMode
public void setFastLoadMode(boolean fastLoadMode)(Code)
Sets whether fast load mode is used.
Parameters:
  fastLoadMode - true to enable fast load.
See Also:   DocumentTemplate.isFastLoadMode()



setFrameworkScriptFilesBasePath
public void setFrameworkScriptFilesBasePath(String path)(Code)
Returns the relative web path where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.
Parameters:
  path - the relative web path of framework files.
See Also:   DocumentTemplate.isAddFrameworkScriptFiles()



setLoadScriptInline
public void setLoadScriptInline(boolean value)(Code)
Sets the initial JavaScript code is sent inline into the loaded page or is loaded externally.
Parameters:
  value - true to sent inline.
See Also:   DocumentTemplate.isLoadScriptInline()



setNodeCacheEnabled
public void setNodeCacheEnabled(boolean enable)(Code)
Sets whether the speed oriented node cache is enabled.
Parameters:
  enable - true to enable node cache.
See Also:   DocumentTemplate.isNodeCacheEnabled()



setReferrerEnabled
public void setReferrerEnabled(boolean enabled)(Code)
Sets whether referrer feature is enabled by default.
Parameters:
  enabled - if referrer is enabled.
See Also:   DocumentTemplate.isReferrerEnabled()



setReferrerPushEnabled
public void setReferrerPushEnabled(boolean enabled)(Code)
Sets whether referrer "push" feature is enabled by default.
Parameters:
  enabled - if referrer "push" is enabled.
See Also:   DocumentTemplate.isReferrerPushEnabled()



setScriptingEnabled
public void setScriptingEnabled(boolean enabled)(Code)
Sets whether JavaScript is enabled.

If JavaScript is disabled then AJAX is disabled too.


Parameters:
  enabled - if JavaScript is enabled.
See Also:   DocumentTemplate.isScriptingEnabled()
See Also:   DocumentTemplate.setAJAXEnabled(boolean)



setUseGZip
public void setUseGZip(int value)(Code)
Sets whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

A bitwise value must be used using UseGZip constants, for instance: setUseGZip(UseGZip.MARKUP | UseGZip.SCRIPT).


Parameters:
  value - a bitwise value.
See Also:   DocumentTemplate.getUseGZip()
See Also:   UseGZip



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:   DocumentTemplate.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.