Method Summary |
|
public long | getAJAXTimeout() Returns the default timeout of asynchronous AJAX events. |
public Object | getArtifact(String name) Returns the artifact with the specified name.
Parameters: name - the artifact name to look for. |
public int | getClientErrorMode() Returns the default client error mode.
This value specifies whether the browser catches JavaScript errors
and if they are shown to the user using a JavaScript alert call.
This feature only affects to (X)HTML documents not to fragments
the default client error mode. |
public DateFormat | getDefaultDateFormat() Returns the default date format used by components such as
org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
This feature only affects to documents not to fragments
the default data format. |
public String | getDefaultEncoding() Returns the encoding used. |
public NumberFormat | getDefaultNumberFormat() Returns the default number format used by components such as
org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
This feature only affects to documents not fragments
the default data format. |
public int | getDefaultSyncMode() Returns the default synchronous mode of AJAX events. |
public long | getEventDispatcherMaxWait() 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 not fragments
the default max wait in milliseconds. |
public String | getFrameworkScriptFilesBasePath() 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 not to fragments
the relative web path of framework files. |
public ItsNatServletContext | getItsNatServletContext() Returns the application context. |
public ServletConfig | getServletConfig() Returns the servlet configuration object wrapped. |
public int | getUseGZip() Returns whether JavaScript code and/or markup sent to the client is
automatically compressed if the browser accepts this encoding.
This feature only affects to documents not to fragments
the bitwise value containing whether gzip is used to encode JavaScript code and/or markup. |
public boolean | isAJAXEnabled() Informs whether AJAX events are enabled.
This feature only affects to (X)HTML documents not fragments.
true if AJAX is enabled. |
public boolean | isAddFrameworkScriptFiles() Informs whether the necessary framework JavaScript files are included
into the page automatically. |
public boolean | isAutoBuildComponents() Informs whether components are build automatically using the necessary
markup declarations. |
public boolean | isAutoCleanEventListeners() Informs whether the auto clean event listeners mode is enabled.
This feature only affects to (X)HTML documents not fragments.
true if enabled. |
public boolean | isDebugMode() Informs whether the debug mode is enabled.
In debug mode the framework makes more checks to ensure is correctly used.
true if debug is enabled. |
public boolean | isFastLoadMode() Informs whether the fast load mode is enabled. |
public boolean | isLoadScriptInline() Informs whether the initial JavaScript code is sent inline into the loaded page
or is loaded externally. |
public boolean | isNodeCacheEnabled() Informs whether the speed oriented node cache is enabled. |
public boolean | isOnLoadCacheStaticNodes(String mime) Informs whether static nodes are serialized as text and globally cached when
the template is loaded to save memory (it improves the performance too). |
public boolean | isReferrerEnabled() Informs whether referrer feature is enabled by default.
This feature only affects to (X)HTML documents not fragments (because requires AJAX)
This feature only works if AJAX is enabled.
true if referrer is enabled. |
public boolean | isReferrerPushEnabled() Informs whether referrer "push" feature is enabled by default. |
public boolean | isScriptingEnabled() Informs whether JavaScript is enabled.
This feature only affects to (X)HTML documents not fragments.
true if JavaScript is enabled. |
public boolean | isUsePatternMarkupToRender() Informs whether dom utils and components use by default the original
(saved as pattern) markup to render.
This feature only affects to documents not fragments.
true if the original markup is used. |
public void | registerArtifact(String name, Object value) Registers an artifact with the specified name.
Parameters: name - the artifact name Parameters: value - the artifact. |
public Object | removeArtifact(String name) Removes the artifact with the specified name.
Parameters: name - the artifact name to look for. |
public void | setAJAXEnabled(boolean enabled) Sets whether AJAX events are enabled. |
public void | setAJAXTimeout(long timeout) Sets the default timeout of asynchronous AJAX events. |
public void | setAddFrameworkScriptFiles(boolean value) Sets whether the necessary framework JavaScript files are included
into the page automatically. |
public void | setAutoBuildComponents(boolean value) Sets whether components are build automatically using the necessary
markup declarations. |
public void | setAutoCleanEventListeners(boolean enabled) Sets whether the auto clean event listeners mode is enabled. |
public void | setClientErrorMode(int mode) Sets the default client error mode. |
public void | setDebugMode(boolean debugMode) Sets the debug mode. |
public void | setDefaultDateFormat(DateFormat format) Sets the default date format used by components such as
org.itsnat.comp.html.ItsNatHTMLInputTextFormatted . |
public void | setDefaultEncoding(String encoding) Sets the encoding used. |
public void | setDefaultNumberFormat(NumberFormat format) Sets the default data format used by components such as
org.itsnat.comp.html.ItsNatHTMLInputTextFormatted . |
public void | setDefaultSyncMode(int syncMode) Sets the default synchronous mode of AJAX events. |
public void | setEventDispatcherMaxWait(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 void | setFastLoadMode(boolean fastLoadMode) Sets whether fast load mode is used. |
public void | setFrameworkScriptFilesBasePath(String path) Sets the relative web path where the necessary framework JavaScript files are located.
This path only has sense if framework files are included automatically. |
public void | setLoadScriptInline(boolean value) Sets the initial JavaScript code is sent inline into the loaded page
or is loaded externally. |
public void | setNodeCacheEnabled(boolean enable) Sets whether the speed oriented node cache is enabled. |
public void | setOnLoadCacheStaticNodes(String mime, boolean cache) Sets whether static nodes are serialized as text and globally cached when
the template is loaded to save memory (it improves the performance too). |
public void | setReferrerEnabled(boolean enabled) Sets whether referrer feature is enabled by default. |
public void | setReferrerPushEnabled(boolean enabled) Sets whether referrer "push" feature is enabled by default. |
public void | setScriptingEnabled(boolean enabled) Sets whether JavaScript is enabled. |
public void | setUseGZip(int value) Sets whether JavaScript code and/or markup sent to the client is
automatically compressed if the browser accepts this encoding. |
public void | setUsePatternMarkupToRender(boolean value) Sets whether dom utils and components use by default the original
(saved as pattern) markup to render. |