The table below describes the available system functions.Table { titleLocation: "top_left" columns { {title: "{$date('T-3')}"} {title: "{$date('T-2')}"} {title: "{$date('T-1')}"} } }
| static String | applicationURL (iWidget context) |
| Returns a string representing the application's main URL. | |
| static String | applicationURL () |
| Returns a string representing the application's main URL. | |
| static String | base64 (String val) |
| Base64 encodes the specified string. | |
| static String | chop (String val, int size) |
| Chops the specified amount of characters for the specified string. | |
| static String | cleanQuotedString (String val) |
| Cleans a quoted string, removing the quotes and backslash escape sequences. | |
| static String | cleanString (String val) |
| Cleans a string removing backslash escape sequences. | |
| static String | codeBase (iWidget context) |
| Returns a string representing the codebase for an application launched via webstart. | |
| static String | codeBase () |
| Returns a string representing the codebase for an application launched via webstart. | |
| static List | createFilterableList (int len) |
| Creates a filterablelist object to use to hold items. | |
| static HashMap | createHashMap (int len) |
| Creates a hash map. | |
| static List | createList (int len) |
| Creates a list object to use to hold items. | |
| static ListBoxViewer | createListBox (iWidget context, List< RenderableDataItem > rows) |
| Creates a new listbox viewer. | |
| static TableViewer | createTable (iWidget context, List< Column > columns, List< RenderableDataItem > rows) |
| Creates a new table viewer. | |
| static TableViewer | createTable (iWidget context, iDataCollection dc, int skip) |
| Creates a new table viewer. | |
| static TreeViewer | createTree (iWidget context, RenderableDataItem root, List< RenderableDataItem > rows) |
| Creates a new tree viewer. | |
| static String | currentDate (iWidget context, String format) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | currentDate (String format) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | currentTime () |
| Returns a string representing the current time in milliseconds. | |
| static String | date (String spec, String format) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | date (iWidget context, String spec) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | date (String spec) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | dateTime (iWidget context, String spec, String format) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | dateTime (String spec, String format) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | dateTime (iWidget context, String spec) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | dateTime (String spec) |
| Convenience method for creating a date string from a relative time specification. | |
| static String | decrypt (String val, String key, String algorithm) |
| Decrypts the specified value. | |
| static String | digest (String val, String algorithm) |
| Digests the specified value. | |
| static String | documentBase (iWidget context) |
| Returns a string representing the documentbase for an applet or the codebase for an application launched via webstart. | |
| static String | documentBase () |
| Returns a string representing the documentbase for an applet or the codebase for an application launched via webstart. | |
| static String | encrypt (String val, String key, String algorithm) |
| Encrypts the specified value. | |
| static void | eprintln (Object o) |
| Prints the string representation of the specified object to standard error. | |
| static String | escape (String str) |
| Encodes the specifeid string for use as part of a url. | |
| static String | format (String pattern, Object...args) |
| Formats a string using the specified pattern and arguments. | |
| static boolean | getStrictScriptingMode () |
| Gets the strict mode for the scripting environment. | |
| static String | hmacMD5 (String val, String key) |
| Computes a Hash-based Message Authentication Code (HMAC) using the MD5 hash function. | |
| static String | hmacSHA (String val, String key) |
| Computes a Hash-based Message Authentication Code (HMAC) using the SHA hash function. | |
| static String | length (String val, String tok) |
| Returns the length of tokenized segments in the specified string. | |
| static String | length (String val) |
| Returns the length of the specified string. | |
| static String | linefeedToHTMLBreak (String s, boolean html) |
| Replaces the linefeeds in the specified string with HTML line breaks (<BR>). | |
| static String | linefeedToHTMLBreak (String s) |
| Replaces the linefeeds in the specified string with HTML line breaks (<BR>). | |
| static void | loadResourceIcons (iWidget context, ActionLink link) throws IOException |
| Loads icon resources from a properties files. | |
| static void | loadResourceStrings (iWidget context, ActionLink link) throws IOException |
| Loads string resources from a properties file. | |
| static void | loadTemplate (iWidget context, ActionLink link, String name) throws IOException |
| Loads a template that will be cached. | |
| static String | lowerCase (String val) |
| Returns the lowercase representation of the specified string. | |
| static String | mac (String val, String key, String algorithm) |
| Computes the Message Authentication Code for the specified value. | |
| static String | md5 (String val) |
| Computes the MD5 hash of the specified value. | |
| static String | nanoTime () |
| Returns a string representing the number nanoseconds of elapsed time. | |
| static String | piece (String val, String tok, int start, int end) |
| Returns a portion of a token delimited string. | |
| static void | println (Object o) |
| Prints the string representation of the specified object to standard output. | |
| static String | property (iWidget context, String name, String def) |
| Returns the system property with the specified name. | |
| static String | property (String name, String def) |
| Returns the system property with the specified name. | |
| static String | random (String val) |
| Returns a string representing a random number that is greater than or equal to zero and less than the specified value. | |
| static String | random () |
| Returns a string representing a random number. | |
| static String | read (iWidget context, Object entity) throws IOException |
| Reads the dat for the specified entity. | |
| static void | removeRange (List list, int fromIndex, int toIndex) |
Removes from the specified list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive. | |
| static String | replacePiece (String val, String tok, int tlen, int pos, int pos2, String rval) |
| Replaces a portion of a token delimited string with a specified value. | |
| static String | resolve (iWidget context, String str) |
| Convenience method for resolving embedded functions and attributes within the specified string. | |
| static String | resolve (String str) |
| Convenience method for resolving embedded functions and attributes within the specified string. | |
| static String | script (iWidget context, String code) |
| Evaluates the specified code within the specified widget context and returns the result. | |
| static String | script (String code) |
| Evaluates the specified code within the specified widget context and returns the result. | |
| static String | scriptVar (iWidget context, String name) |
| Returns the string representation of the specified script variable. | |
| static String | scriptVar (String name) |
| Returns the string representation of the specified script variable. | |
| static String | serverBase (iWidget context) |
| Returns a string representing the server's base for an application. | |
| static String | serverBase () |
| Returns a string representing the server's base for an application. | |
| static void | setStrictScriptingMode (boolean strict) |
| Sets the strict mode for the scripting environment. | |
| static String | sha (String val) |
| Computes the SHA hash of the specified value. | |
| static String | sound (iWidget context, String sound) |
| Plays a predefined sound. | |
| static String | sound (String sound) |
| Plays a predefined sound. | |
| static String | substring (String val, int start, int end) |
| Returns a new string that is a substring of the specified string. | |
| static String | timeExecution (String code) throws ScriptException |
| Returns the amount of time the specified code took to execute. | |
| static String | trim (String val) |
| Trims leading an trailing whitespace from the specified string. | |
| static String | upperCase (String val) |
| Returns the lowercase representation of the specified string. |
| static String applicationURL | ( | iWidget | context | ) | [static] |
| context | the widget context |
| static String applicationURL | ( | ) | [static] |
| static String base64 | ( | String | val | ) | [static] |
| val | the value to be encoded |
| static String chop | ( | String | val, | |
| int | size | |||
| ) | [static] |
| val | the value to chop | |
| size | the amount of characters to chop |
| static String cleanQuotedString | ( | String | val | ) | [static] |
| val | the value to be cleaned |
| static String cleanString | ( | String | val | ) | [static] |
| val | the value to be cleaned |
| static String codeBase | ( | iWidget | context | ) | [static] |
| context | the widget context |
| static String codeBase | ( | ) | [static] |
| static List createFilterableList | ( | int | len | ) | [static] |
| len | the initial capacity for the list; |
| static HashMap createHashMap | ( | int | len | ) | [static] |
| len | the initial capacity for the list; |
| static List createList | ( | int | len | ) | [static] |
| len | the initial capacity for the list; |
| static ListBoxViewer createListBox | ( | iWidget | context, | |
| List< RenderableDataItem > | rows | |||
| ) | [static] |
| context | the widget context | |
| rows | the rows for the list (can be null) |
| static TableViewer createTable | ( | iWidget | context, | |
| List< Column > | columns, | |||
| List< RenderableDataItem > | rows | |||
| ) | [static] |
| context | the widget context | |
| columns | the columns for the table (can be null) | |
| rows | the rows for the tabls (can be null) |
| static TableViewer createTable | ( | iWidget | context, | |
| iDataCollection | dc, | |||
| int | skip | |||
| ) | [static] |
| context | the widget context | |
| dc | the data collection | |
| skip | the number of initial items top skip |
| static TreeViewer createTree | ( | iWidget | context, | |
| RenderableDataItem | root, | |||
| List< RenderableDataItem > | rows | |||
| ) | [static] |
| context | the widget context | |
| root | the root node for the tree (can be null) | |
| rows | the rows for the tree (can be null) |
| static String currentDate | ( | iWidget | context, | |
| String | format | |||
| ) | [static] |
| context | the widget context | |
| format | a format specified for the date output |
| static String currentDate | ( | String | format | ) | [static] |
| format | a format specified for the date output |
| static String currentTime | ( | ) | [static] |
| static String date | ( | String | spec, | |
| String | format | |||
| ) | [static] |
| spec | the date specification | |
| format | the date format string |
| static String date | ( | iWidget | context, | |
| String | spec | |||
| ) | [static] |
| context | the widget context | |
| spec | the date specification |
| static String date | ( | String | spec | ) | [static] |
| spec | the date specification |
| static String dateTime | ( | iWidget | context, | |
| String | spec, | |||
| String | format | |||
| ) | [static] |
| context | the widget context | |
| spec | the date/time specification | |
| format | a format specified for the data output |
| static String dateTime | ( | String | spec, | |
| String | format | |||
| ) | [static] |
| spec | the date/time specification | |
| format | a format specified for the data output |
| static String dateTime | ( | iWidget | context, | |
| String | spec | |||
| ) | [static] |
| context | the widget context | |
| spec | the date/time specification |
| static String dateTime | ( | String | spec | ) | [static] |
| spec | the date/time specification |
| static String decrypt | ( | String | val, | |
| String | key, | |||
| String | algorithm | |||
| ) | [static] |
| val | the value to be decrypted | |
| key | the decryption key | |
| algorithm | the decryption algorithm |
| static String digest | ( | String | val, | |
| String | algorithm | |||
| ) | [static] |
| val | the value to be digested | |
| algorithm | the digest algorithm |
| static String documentBase | ( | iWidget | context | ) | [static] |
| context | the widget context |
| static String documentBase | ( | ) | [static] |
| static String encrypt | ( | String | val, | |
| String | key, | |||
| String | algorithm | |||
| ) | [static] |
| val | the value to be encrypted | |
| key | the encryption key | |
| algorithm | the encryption algorithm |
| static void eprintln | ( | Object | o | ) | [static] |
| o | the object to print |
| static String escape | ( | String | str | ) | [static] |
| str | the string to encode |
| static String format | ( | String | pattern, | |
| Object... | args | |||
| ) | [static] |
| pattern | the printf-style pattern | |
| args | the arguments |
| static boolean getStrictScriptingMode | ( | ) | [static] |
| static String hmacMD5 | ( | String | val, | |
| String | key | |||
| ) | [static] |
| val | the value | |
| key | the key |
| static String hmacSHA | ( | String | val, | |
| String | key | |||
| ) | [static] |
| val | the value | |
| key | the key |
| static String length | ( | String | val, | |
| String | tok | |||
| ) | [static] |
| val | the string | |
| tok | the token |
| static String length | ( | String | val | ) | [static] |
| val | the string |
| static String linefeedToHTMLBreak | ( | String | s, | |
| boolean | html | |||
| ) | [static] |
| s | the string containing linefeeds | |
| html | true to enclose the string between <html></html> ; false otherwise |
| static String linefeedToHTMLBreak | ( | String | s | ) | [static] |
| s | the string containing linefeeds |
| static void loadResourceIcons | ( | iWidget | context, | |
| ActionLink | link | |||
| ) | throws IOException [static] |
| context | the context | |
| link | the link to the properties file |
| IOException |
| static void loadResourceStrings | ( | iWidget | context, | |
| ActionLink | link | |||
| ) | throws IOException [static] |
| context | the context | |
| link | the link to the properties file |
| IOException |
| static void loadTemplate | ( | iWidget | context, | |
| ActionLink | link, | |||
| String | name | |||
| ) | throws IOException [static] |
| context | the context | |
| link | the link to the template file | |
| name | the name of the template. If specified it will override the name specified withing the template itself |
| IOException |
| static String lowerCase | ( | String | val | ) | [static] |
| val | the string |
| static String mac | ( | String | val, | |
| String | key, | |||
| String | algorithm | |||
| ) | [static] |
| val | the value | |
| key | the key | |
| algorithm | the mac algorithm |
| static String md5 | ( | String | val | ) | [static] |
| val | the value |
| static String nanoTime | ( | ) | [static] |
| static String piece | ( | String | val, | |
| String | tok, | |||
| int | start, | |||
| int | end | |||
| ) | [static] |
| val | the string | |
| tok | the token | |
| start | the position if the starting token to retrieve | |
| end | the position if the ending token to retrieve |
| static void println | ( | Object | o | ) | [static] |
| o | the object to print |
| static String property | ( | iWidget | context, | |
| String | name, | |||
| String | def | |||
| ) | [static] |
| context | the widget context | |
| name | the name of the variable | |
| def | the default value if the property is undefined |
| static String property | ( | String | name, | |
| String | def | |||
| ) | [static] |
| name | the name of the variable | |
| def | the default value if the property is undefined |
| static String random | ( | String | val | ) | [static] |
| val | a number representing an upper bound for the random number |
| static String random | ( | ) | [static] |
| static String read | ( | iWidget | context, | |
| Object | entity | |||
| ) | throws IOException [static] |
| context | the widget context | |
| entity | the URL, File, or string representing a URL from which to read |
| static void removeRange | ( | List | list, | |
| int | fromIndex, | |||
| int | toIndex | |||
| ) | [static] |
Shifts any succeeding elements to the left (reduces their index). This call shortens the ArrayList by (toIndex - fromIndex) elements. (If toIndex==fromIndex, this operation has no effect.)
| list | the list | |
| fromIndex | index of first element to be removed | |
| toIndex | index after last element to be removed |
| static String replacePiece | ( | String | val, | |
| String | tok, | |||
| int | tlen, | |||
| int | pos, | |||
| int | pos2, | |||
| String | rval | |||
| ) | [static] |
| val | the string | |
| tok | the token | |
| tlen | the token length | |
| pos | the starting token position to replace from | |
| pos2 | the ending token position to replace to | |
| rval | the value to replace with |
| static String resolve | ( | iWidget | context, | |
| String | str | |||
| ) | [static] |
| context | the context | |
| str | the string to resolve |
| static String resolve | ( | String | str | ) | [static] |
| str | the string to resolve |
| static String script | ( | iWidget | context, | |
| String | code | |||
| ) | [static] |
| context | the widget context | |
| code | the code to execute |
| static String script | ( | String | code | ) | [static] |
| code | the code to execute |
| static String scriptVar | ( | iWidget | context, | |
| String | name | |||
| ) | [static] |
| context | the widget context | |
| name | the name of the variable |
| static String scriptVar | ( | String | name | ) | [static] |
| name | the name of the variable |
| static String serverBase | ( | iWidget | context | ) | [static] |
This is the url to the server (http://server:port/)
| context | the widget context |
| static String serverBase | ( | ) | [static] |
This is the url to the server (http://server:port/)
| static void setStrictScriptingMode | ( | boolean | strict | ) | [static] |
| strict | true for strict mode; false otherwise |
| static String sha | ( | String | val | ) | [static] |
| val | the value |
| static String sound | ( | iWidget | context, | |
| String | sound | |||
| ) | [static] |
| context | the widget context | |
| sound | the sound. Current valid values are "beep", "error", "success" |
| static String sound | ( | String | sound | ) | [static] |
| sound | the sound. Current valid values are "beep", "error", "success" |
| static String substring | ( | String | val, | |
| int | start, | |||
| int | end | |||
| ) | [static] |
The substring begins at the specified start and extends to the character at index end - 1. Thus the length of the substring is end-start.
| val | the string | |
| start | the beginning index, inclusive. | |
| end | the ending index, exclusive. |
| static String timeExecution | ( | String | code | ) | throws ScriptException [static] |
| code | the code to execute |
| static String trim | ( | String | val | ) | [static] |
| val | the string |
| static String upperCase | ( | String | val | ) | [static] |
| val | the string |