This a function library that can be used from the theme XSL-files. It provides easy access to current application, window, theme, webbrowser and session. The internal threadlocal state must be maintained by the webadapter in order go guarantee that it works.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.terminal.web.ThemeFunctionLibrary
Returns a reference to the application object associated with the session that the call came from.
Returns a reference to the browser object associated with the session that the call came from.
Parameters
Number
of week day. 0 first day of week.
Name of week day in applications current locale.
Get name for week day.
Parameters
Form action for the current window.
Get Form Action URL for the requested window.
This returns the action for the window main form. This action can be set through WebApplicationContect setWindowFormAction method..
Parameters
language Country code of the current application locale.
Returns the country and region code for current application locale.
Parameters
language Language code for current application locale.
Returns the language code for current application locale.
Parameters
Number
of month. 0 is January, 1 is February, and so on.
Name of month in applications current locale.
Get name for month.
Parameters
Number
of month. 0 is January, 1 is February, and so on.
Name of month in applications current locale.
Get short name for month.
Parameters
Number
of week day. 0 sunday, 1 monday, ...
Name of week day in applications current locale.
Get name for week day.
Parameters
An unique ID for window target
Returns an unique target name for current window.
Parameters
windowName
Name of the window.
An unique ID for window target
Exceptions
IllegalStateException
If application for window is null.
Returns an unique target name for a given window name.
Parameters
An unique ID for window target
Exceptions
IllegalStateException
If application for window is null.
Returns an unique target name for current window.
Returns a reference to the current servlet http session object that is associated with the session that the call came from.
Return a reference to the current theme name that is associated with the session that the call came from.
Returns a reference to the current window object associated with the session that the call came from.