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 | aesDecrypt (String val, String password, String salt, int iteration) |
| Decrypts the specified value using AES 128 bit encryption. | |
| 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 List | asList (Object o) |
| Returns the specified object as a list. | |
| static String | base64 (String val) |
| Base64 encodes the specified string. | |
| static String | base85 (String val) |
| Base85/ascii85 encodes the specified string. | |
| static boolean | booleanValue (Object o) |
| Returns the boolean representation of the specified object. | |
| static void | cacheData (String name, String data) |
| Caches data using the file system. | |
| static void | cacheData (String name, InputStream in) |
| Caches data using the file system. | |
| static String | charToString (char c) |
| Converts a character to a string. | |
| static String | chop (String val, int size) |
| Chops the specified amount of characters for the specified string. | |
| static void | clearBrowserSessionCookies () |
| Clears session cookies for embedded browser widgets. | |
| static void | clearResponseCache () |
| Clears an installed disk based cache for HTTP responses. | |
| 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 String | colorToHexString (Color c) |
| Converts a color to its hex string representation. | |
| static String | colorToRGBString (Color c) |
| Converts a color to its RGB string representation. | |
| static String | convertDate (iWidget context, Object date, String inputFormat, String outputFormat) throws ParseException |
| Converts a date string from one format to another. | |
| static String | convertDate (iWidget context, Object date, String outputFormat) throws ParseException |
| Converts a date string in the default item format to the specified format. | |
| static String | convertDate (iWidget context, Object date, boolean display) throws ParseException |
| Converts a date string in the default item format to the default display format. | |
| static String | convertDate (iWidget context, Object date) throws ParseException |
| Converts a date string in the default item format to the default display format. | |
| static String | convertDateTime (iWidget context, Object date, boolean display) throws ParseException |
| Converts a date/time string in the default item format to the default display format. | |
| static String | convertDateTime (iWidget context, Object date) throws ParseException |
| Converts a date/time string in the default item format to the default display format. | |
| static ActionEx | createAction (String name, String text, Icon icon, String code) |
| Creates a new action. | |
| static File | createAppFile (String appName, String fileName) |
| Creates a file with the given name/path in the .sage directory of the users home directory. | |
| static iBackgroundPainter | createBackgroundPainter (Color bg) |
| Creates a new background painter. | |
| static Border | createBorder (iWidget context, String borderString) |
| Creates a border from a configuration string. | |
| static Icon | createBorderIcon (Border border, Icon icon) |
| Creates an icon that has a border around it. | |
| static PushButtonWidget | createButton (iWidget context, Object o) |
| Convenience method for creating a button. | |
| static PushButtonWidget | createButton (iWidget context) |
| Convenience method for creating a button. | |
| static File | createCacheFile (String name) throws IOException |
| Creates a file in the file caching directory. | |
| static ObjectCache | createCacheMap (int len, int maxSize) |
| Creates an object cache that can be bounded and will automatically release memory as needed. | |
| static Calendar | createCalendar (String spec) |
| Creates a Calendar object from a relative date/time specification. | |
| static Icon | createColorIcon (final Color color, final int width, final int height, final Border border) |
| Creates an icon that fills the specified width and height with the specified color. | |
| static CompoundBorderEx | createCompoundBorder (Border firstBorder, Border secondBorder) |
| Creates a compound border from the two specified borders. | |
| static CompoundIcon | createCompoundIcon (Icon firstIcon, Icon secondIcon) |
| Creates a compound icon from the two specified icons. | |
| static CompoundPainter | createCompoundPainter (iPainter firstPainter, iPainter secondPainter) |
| Creates a compound painter from the two specified painters. | |
| static Map | createConcurrentHashMap (int len) |
| Creates a hash map that is thread-safe. | |
| static ContainsFilter | createContainsFilter (String value, boolean startsWith) |
| Creates a filter that test for contains. | |
| static Date | createDate (String spec) |
| Convenience method for creating a date/time from a relative time specification. | |
| static Icon | createEmptyIcon (final int width, final int height, final Color borderColor) |
| Creates an empty icon that can be used as a spacer. | |
| static EqualityFilter | createEqualityFilter (String value, boolean ignorecase) |
| Creates a filter to test for equality. | |
| static FileMutex | createFileMutex (String file) |
| Convenience method for creating a file-based mutex object. | |
| static FileMutex | createFileMutex (File file) |
| Convenience method for creating a file-based mutex object. | |
| static Grouper | createGrouper () |
| Creates a grouper that can be use to grow table-based data. | |
| static Map | createHashMap (int len) |
| Creates a hash map that maintains its insertion order. | |
| static Box | createHorizontalBox () |
Creates a Box that displays its components from left to right. | |
| static Component | createHorizontalStrut (int width) |
| Creates an invisible, fixed-width component. | |
| static Icon | createIcon (URL url) |
| Creates an icon from the specified url. | |
| static Icon | createIcon (Image image) |
| Creates an icon from the specified image. | |
| static IconSeries | createIconSeries (boolean horizontal, List icons) |
| Creates an icon series object that is an icon that paints a series of icons. | |
| static IconSeries | createIconSeries (boolean horizontal, Icon...icons) |
| Creates an icon series object that is an icon that paints a series of icons. | |
| static Image | createImage (URL url) throws IOException |
| Creates an image from the specified url. | |
| static BufferedImage | createImage (JComponent comp) |
| Creates an image of the specified component. | |
| static iImagePainter | createImagePainter (iWidget context, String painter) |
| Creates an image painter that will paint the specified image. | |
| static iImagePainter | createImagePainter (Image image) |
| Creates an image painter that will paint the specified image. | |
| static JSONArray | createJSONArray (Object o) |
| Creates a new JSON array. | |
| static JSONObject | createJSONObject (Object o) |
| Creates a new JSON object. | |
| static KeyEvent | createKeyEvent (iWidget w, String keystroke) |
| Creates a key event for the given keystroke string The event can then be passed to the widget's dispatchKeyEvent method. | |
| static LabelWidget | createLabel (iWidget context) |
| Convenience method for creating a label. | |
| static Stroke | createLineStroke (String style, float thickness) |
| Creates a line stroke. | |
| static List | createList (Object obj) |
| Creates a list object to use to hold items. | |
| static ListBoxViewer | createListBox (iWidget context, List< RenderableDataItem > rows) |
| Creates a new list box viewer. | |
| static UtilityPanel | createPanel () |
| Convenience method for creating a panel. | |
| static ImageIconEx | createPunchedIcon (Image image, int unblurredShadowSize_pixels) |
| Create an icon representing a punched out version of the specified image. | |
| static RegularExpressionFilter | createRegExFilter (String value, boolean parse) |
| Creates a filter that uses regular expressions. | |
| 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 TextIcon | createTextIcon (String text, Font font) |
| Creates an icon that will display the specified text. | |
| static BufferedImage | createTextImage (String text, Font font, Color fg, Color bg, Border b, boolean square) |
| Creates an image that will display the specified text. | |
| static BufferedImage | createTextImage (String text, Font font) |
| Creates an image that will display the specified text. | |
| static TextIcon | createTextPainter (String text) |
| Creates an painter that will display the specified text. | |
| static JideToggleButtonEx | createToggleButton () |
| Convenience method for creating a toggle button. | |
| static iStringConverter < RenderableDataItem > | createToStringConverter (int col) |
| Creates a filtering converter for a multi-column list that will cause a the filter to use the toString() of the particular column as the representative value for the row when rows are being filtered via the filter() method. | |
| static TreeViewer | createTree (iWidget context, RenderableDataItem root, List< RenderableDataItem > rows) |
| Creates a new tree viewer. | |
| static TreeMap | createTreeMap () |
| Creates a tree map. | |
| static Box | createVerticalBox () |
Creates a Box that displays its components from top to bottom. | |
| static Component | createVerticalStrut (int height) |
| Creates an invisible, fixed-height component. | |
| static Writer | createWriter (OutputStream out, String charset, boolean buffered) throws UnsupportedEncodingException |
| Creates a writer for the specified output stream. | |
| static String | currentDate (iWidget context, String format) |
| Returns the current date as a string. | |
| static String | currentDate (String format) |
| Returns the current date as a string. | |
| static String | currentTime (iWidget context, String format) |
| Returns the current time as a string. | |
| static String | currentTime (String format) |
| Returns the current time as a string. | |
| static long | 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/time 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 | decode (String str) |
| Decodes a string that was encoded using the encode function. | |
| static String | decodeBase64 (String val) |
| Base64 decodes the specified string. | |
| static String | decrypt (String val, String key, String algorithm, boolean base64) |
| Decrypts the specified value. | |
| static void | deleteFile (File file) |
| Deletes a file. | |
| static String | digest (String val, String algorithm) |
| Digests the specified value. | |
| static void | disableDebugLogging () |
| Disables debug logging. | |
| 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 void | dprintln (Object o) |
| Prints the string representation of the specified object to standard error If the engine is running with debug enabled or debug logging has been explicitly enabled. | |
| static void | enableDebugLogging (OutputStream out) |
| Enables debug logging When enabled, all output from the dprintln() method will be written to standard err (or the specified stream). | |
| static String | encode (String str) |
| Encodes the specified string for use as part of a url. | |
| static String | encodeFull (String str) |
| Encodes the specified string for use as part of a url The only non alpha-numeric characters that are not escaped are '. | |
| static String | encrypt (String val, String key, String algorithm, boolean base64) |
| Encrypts the specified value. | |
| static void | eprintln (Object o) |
| Prints the string representation of the specified object to standard error. | |
| static String | escape (String val) |
| Escapes a string, converting characters larger than 7bit to uincode representation and escapes linefeeds,tabs, etc. | |
| static String | escapeHTML (String str, boolean whitespace, boolean addHTMLTag) |
| Encodes the specified string for use as part of an HTML document. | |
| static String | expand (String pattern, String...args) |
| Expand a string using the specified pattern and arguments Unlike format, all the argument values have to be strings and only "%s" format specified is supported. | |
| static Widget | findWidget (Widget w, String name, boolean useNameMap) |
| Finds a widget within the specified widget that has the given name If the name is a path then recursion is performed in order to find the widget that represents the last path component. | |
| static float | floatValue (String s) |
| Returns the float representation of the specified string. | |
| static void | focusLater (final iWidget widget) |
| Cause a focus request to be dispatched to the specified widget after all current events are processed and the invoking script finishes execution. | |
| static String | format (String pattern, Object...args) throws ParseException |
| Formats a string using the specified pattern and arguments. | |
| static String | generateKey (String password, String salt, int iteration) |
| Generates a password-based key. | |
| static String | generateSalt (int bytes) |
| Generates a set of random bytes that can be use a salt for cryptographic purposes. | |
| static List< WindowViewer > | getAllPopupWindowViewers () |
| Gets a list of all the popup WindowViewer objects. | |
| static ImageIconEx | getAnimatedSpinner () |
| Gets the default animated spinner. | |
| static iPainter | getAnimatedSpinnerPainter () |
| Gets the default animated spinner painter. | |
| static iPainter | getAnimatedSpinnerPainterSmall () |
| Gets the default small animated spinner painter. | |
| static ImageIconEx | getAnimatedSpinnerSmall () |
| Gets the default small animated spinner. | |
| static String | getBrowserSessionCookie (String url, String name) |
| Gets a session cookie for all embedded browser widgets. | |
| static Object | getCachedData (String name, boolean asString) |
| Returns previously cached data. | |
| static Border | getDefaultLineBorder () |
| Returns a the default line border. | |
| static Image | getImage (JComponent comp, Icon icon) |
| Get the image of the specified icon. | |
| static String | getInheritanceTree (Object o) |
| Gets the inheritance tree for a specified object. | |
| DOXYGEN_SKIP static String | getJavaVersion () |
| Returns the java version. | |
| static String | getLastDomainName () |
| Returns the last domain name that was entered during basic authentication. | |
| static String | getLastPasswordHash () |
| Returns an SHA1 hash of the last password that was entered during basic authentication. | |
| static String | getLastUserName () |
| Returns the last username that was entered during basic authentication. | |
| static int | getLineHeight (Component c) |
| Gets the line height for text in the specified component. | |
| static String | getLines (String s, int lines) |
| Gets the number of lines from the specified string. | |
| static Rectangle | getMonitorBounds (Component c) |
| Get the bounds of the monitor that the specified component is displayed on. | |
| static List< String > | getMonths () |
| Gets the months of the year for the current locale. | |
| static List< String > | getMonthsShortNames () |
| Gets the short names for the months of the year for the current locale. | |
| static String | getOs () |
| Returns the OS. | |
| static String | getOsVersion () |
| Returns the OS version. | |
| static List< Window > | getPopupAllWindow () |
| Gets a list of all the popup java.awt.Window objects. | |
| static Preferences | getPreferences (String appKey) |
| Returns a java preference for the specified sage application key. | |
| static float | getRelativeFontSize () |
| Gets the relative font size for the application. | |
| static Dimension | getScreenSize () |
| Get the logical size of the screen. | |
| static ImageIconEx | getToolkitIcon (URL url) |
| Gets an icon via Toolkit.getDefaultToolkit().createImage() Images created in this fashion support animated gifs. | |
| static Image | getToolkitImage (URL url) |
| Gets an image via Toolkit.getDefaultToolkit().createImage() Images created in this fashion support animated gifs. | |
| static UIDefaults | getUIDefaults () |
| Returns the UIDefaults map. | |
| static String | getURLQueryParameter (String url, String param) |
| Gets a parameter value from a url query string. | |
| static String | hmacMD5 (String val, String key, boolean hexout) |
| Computes a Hash-based Message Authentication Code (HMAC) using the MD5 hash function. | |
| static String | hmacSHA (String val, String key, boolean hexout) |
| Computes a Hash-based Message Authentication Code (HMAC) using the SHA hash function. | |
| static String | htmlReplace (String s, Pattern urlPattern, String replacement, boolean escape, String tag) |
| Replaces text within an html string (i.e. | |
| static String | htmlWordWrap (String s, final int width, final boolean html_tag) |
| Wraps the specified string so that each line is no longer than the specified width. | |
| static void | installResponseCache (String name, int mbMaxSize, boolean deleteOnExit) |
| Manually installs a disk based cache for HTTP responses. | |
| static int | intValue (Object o) |
| Returns the integer representation of the specified object. | |
| static boolean | isJava6OrAbove () |
| Returns whether or not the JDK version is 6 and above. | |
| static boolean | isJava6Update10OrAbove () |
| Returns whether or not the JDK version is 6 and above. | |
| static boolean | isJava7OrAbove () |
| Returns whether or not the JDK version is 1.7 and above. | |
| static boolean | isLinux () |
| Returns whether the desktop OS is a version of Linux. | |
| static boolean | isMac () |
| Returns whether the desktop OS is a Mac OS. | |
| static boolean | isOptimizationEnabled () |
| Gets whether optimizations are enabled. | |
| static boolean | isPrintableChar (char c) |
| Printable character. | |
| static boolean | isRunningInBackground () |
| Returns whether the current thread is running in the background. | |
| static boolean | isStrictScriptingMode () |
| Returns if strict mode is enabled for the scripting environment. | |
| static boolean | isUnix () |
| Returns whether the desktop OS is a version of UNIX. | |
| static boolean | isWindows () |
| Returns whether the desktop OS is a version of windows. | |
| static boolean | isWindows7OrAbove () |
| Returns whether the desktop OS is a version of windows 7 or greater. | |
| static String | join (Object[] array, String sep) |
| Returns a string representing the specified array of objects. | |
| static String | join (List list, String sep) |
| Returns a string representing the specified array of objects. | |
| 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 Map< String, ActionEx > | loadActions (iWidget context, ActionLink link) throws Exception |
| Loads a set of actions from a configuration file. | |
| static Map< String, ImageIconEx > | loadResourceIcons (iWidget context, ActionLink link) throws IOException |
| Loads icon resources from a properties files. | |
| static Map< String, String > | 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 long | longValue (Object o) |
| Returns the long integer representation of the specified object. | |
| static String | lowerCase (String val) |
| Returns the lowercase representation of the specified string. | |
| static String | mac (String val, String key, String algorithm, boolean hexout) |
| Computes the Message Authentication Code for the specified value. | |
| static String | makeHyperlinks (String s, boolean escape, String tag) |
| Processes a string looking for text patterns that match valid URLs and converts them to hyperlinks. | |
| static Component | makeResizable (iWidget w, boolean createCorner, Icon cornerIcon) |
| Makes a widget resizable using the widget's border and an optional corner resizer. | |
| static Component | makeResizable (Component comp, boolean createCorner, Icon cornerIcon) |
| Makes a component resizable using the widget's border and an optional corner resizer. | |
| static String | md5 (String val, boolean hexout) |
| Computes the MD5 hash of the specified value. | |
| static String | md5 (String val) |
| Computes the MD5 hash of the specified value. | |
| static long | nanoTime () |
| Returns a string representing the number nanoseconds of elapsed time. | |
| static void | notifyWaiter (Object object, boolean all) |
| Notifies waiters of the specified object to wakeup. | |
| static Date | parseDateString (iWidget context, String date, String inputFormat) throws ParseException |
| Converts a date string from one format to another. | |
| static Date | parseDateString (iWidget context, String date) throws ParseException |
| Converts a date string in the default item format to a date object. | |
| static Date | parseDateTimeString (iWidget context, String date) throws ParseException |
| Converts a date/time string in the default item format to a date object. | |
| static Map< String, String > | parseOptionsString (String options, char delimiter, boolean unquote) |
| Parses a string for options. | |
| static Map< String, String > | parseOptionsString (String options) |
| Parses a string for options. | |
| static String | piece (String val, String tok, int start, int end) |
| Returns a portion of a token delimited string. | |
| static String | piece (String val, String tok, int start) |
| Returns a portion of a token delimited string. | |
| static String | piece (String val, String tok) |
| Returns a portion of a token delimited string. | |
| static void | populateViewerWdgetValues (iWidget context, Viewer viewer, Map values) |
| Populates a the values for widgets contained in the specified viewer's configuration This method is useful for populating a viewer’s configuration using data from an external source. | |
| static void | populateViewerWdgetValues (iFormViewer fv, Map values) |
| Populates a the values for widgets belonging to the specified from viewer This method is useful for populating a forms configuration using data from an external source. | |
| static void | print (Object...o) |
| Prints the string representation of the specified object to standard output. | |
| static void | printDocument (iWidget context, String url) throws IOException, PrintException |
| Prints the document associated with the specified URL using the java printing system. | |
| 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 | quote (String str) |
| Produce a string in double quotes with backslash sequences in all the right places. | |
| 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 long | randomLong (long max) |
| Returns a string representing a random number that is greater than or equal to zero and less than the specified value. | |
| static long | randomLong () |
| Returns a random number. | |
| static String | read (iWidget context, Object entity) throws IOException |
| Reads the data for the specified entity. | |
| static MouseKeyStrokeTimeoutHandler | registerMouseKeyStrokeTimeoutHandler (AppContext app, int seconds, String code) |
| Adds a timeout handler that will execute the specified code if no mouse or keyboard events have occurred during the specified amount of seconds. | |
| static Map | removeAll (Map main, Map remove) |
| Removes all of the shared elements between the main and remove map from the main map. | |
| static void | removeCachedData (String name) |
| Removed previously cached data. | |
| static String | removeHTMLMarkup (String text) |
| Removes HTML markup from a string of text. | |
| static void | removeMouseKeyStrokeTimeoutHandler (MouseKeyStrokeTimeoutHandler handler) |
| Removes a previously added mouse/keystroke handler. | |
| 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 void | removeResponseCache () |
| Clears an installed disk based cache for HTTP responses. | |
| 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 Object | resolveUIProperty (iWidget context, String value) |
| The value specified in the that same format as would be specified in the lookAndFeelPropertiesURL data. | |
| static void | restoreAntialiasHint (Graphics2D g, Object oldHint) |
| Restores an old anti-alias value. | |
| static void | retargetKeyEvent (KeyEvent e, Component target) |
| Re-targets a key event. | |
| static void | retargetMouseEvent (MouseEvent e, Component target) |
| Re-targets a mouse event. | |
| static String | rformat (iWidget context, String resource_string, Object...args) |
| Formats a string using the specified pattern and arguments. | |
| static Image | scaleImage (BufferedImage img, int width, int height, ScalingType type, boolean proportional) |
| Scales the specified image. | |
| 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 | setAnimatedSpinner (ImageIconEx icon) |
| sets the default animated spinner | |
| static void | setAnimatedSpinnerSmall (ImageIconEx icon) |
| sets the default small animated spinner | |
| static void | setBackgroundOverlayPainter (JComponent c, iPainter p) |
| Sets the background overlay painter This painter paints over the background right after the background is painted and before the contents are painted. | |
| static void | setBackgroundPainter (JComponent c, iBackgroundPainter bp) |
| Sets the painter that will paint the component's background (if the component supports such painters). | |
| static void | setBrowserSessionCookie (String url, String value) |
| Sets a session cookie for all embedded browser widgets. | |
| static void | setBrowserSessionCookies (List< Cookie > cookies) |
| Sets a set of session cookies for all embedded browser widgets. | |
| static void | setOptimizationEnabled (boolean enabled) |
| Sets whether optimizations are enabled. | |
| static void | setOverlayPainter (JComponent c, iPainter p) |
| Sets the overlay painter or a component (if the component supports such painters) This painter paints after the component's contents have been painted. | |
| static void | setRelativeFontSize (float size) |
| Sets the relative font size for the application. | |
| static void | setSelectionState (iWidget w, boolean hasSelection) |
| Sets the selection state for a widget. | |
| static void | setStrictScriptingMode (boolean strict) |
| Sets the strict mode for the scripting environment. | |
| static Object | setupAntialiasPainting (Graphics2D g) |
| Setups up anti-alias painting. | |
| static String | sha1 (String val, boolean hexout) |
| Computes the SHA hash of the specified value. | |
| static String | sha1 (byte[] val, boolean hexout) |
| Computes the SHA hash of the specified value. | |
| static String | sha1 (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 | stringValue (Object obj) |
| Returns the string representation for the specified object. | |
| static String | stringValue (long number) |
| Returns the string representation for an integer. | |
| static String | stringValue (int number) |
| Returns the string representation for an integer. | |
| static String | stripMnemonic (String text) |
| Strips the ampersand designating a mnemonic from a string. | |
| static String | substring (String val, int start, int end) |
| Returns a new string that is a substring of the specified string. | |
| static void | systemPrintDocument (iWidget context, String url) throws IOException |
| Prints the document associated with the specified URL using the OS printing system. | |
| static String | timeExecution (String code, int iteration) throws ScriptException |
| Returns the amount of time the specified code took to execute. | |
| static String | titleCase (String val, String wordSeparators) |
| Returns the titlecase representation of the specified string. | |
| static String | titleCase (String val) |
| Returns the title case representation of the specified string. | |
| static String | toExternalForm (URL url) |
| Returns the string representation of the specified url. | |
| static String | tokenReplacement (String s, String what, String with, boolean html, String prefix, String suffix, int maxLineCount) |
| Replaces the specified token in the specified string with another token Also optionally adds a prefix and or suffix to the string. | |
| static String | tokenToHTMLBreak (String s, String tok, boolean html, String prefix, String suffix, int maxLineCount) |
| Replaces the linefeeds in the specified string with HTML line breaks (<BR>) Also optionally adds a prefix and or suffix to the string. | |
| static String | tokenToHTMLBreak (String s, String tok, boolean html) |
| Replaces the linefeeds in the specified string with HTML line breaks (<BR>) Also optionally adds a prefix and or suffix to the string. | |
| static String | trim (String val) |
| Trims leading an trailing whitespace from the specified string. | |
| static String | unescape (String val) |
| Cleans a string removing backslash encode sequences. | |
| static String | unescapeQuotedString (String val) |
| Cleans a quoted string, removing the quotes and backslash encode sequences. | |
| static List< RenderableDataItem > | ungroup (List< RenderableDataItem > list, int groupings, List< RenderableDataItem > out) |
| Un-groups a grouped lists. | |
| static void | updateAllPopupWindows () |
| Calls the update method on all the popup window viewers. | |
| static void | updateUIColor (iWidget context, String name, Object value) |
| Updates a color defined in the UI properties. | |
| static String | upperCase (String val) |
| Returns the lowercase representation of the specified string. | |
| static String | utf8String (String value) |
| Converts a string to a utf-8 encoded set of bytes and then converts those bytes to an iso-8859-1 encoded string. | |
| static void | waitFor (Object object, long timeout) throws InterruptedException |
| Causes the current thread to waits for the specified object to be notified to wakeup (by another thread) or the specified timeout to occur. | |
Static Public Attributes | |
| static ImageIconEx | _animatedSpinner |
| animated spinner icon | |
| static ImageIconEx | _animatedSpinnerSmall |
| small animated spinner icon | |
| static String aesDecrypt | ( | String | val, | |
| String | password, | |||
| String | salt, | |||
| int | iteration | |||
| ) | [static] |
| val | the value to be decrypted | |
| password | the decryption key | |
| salt | the salt | |
| iteration | the number of iterations |
| static String applicationURL | ( | iWidget | context | ) | [static] |
| context | the widget context |
| static String applicationURL | ( | ) | [static] |
| static List asList | ( | Object | o | ) | [static] |
If the object is already it is simply returned If it is an array a new is created that is backed by the array other a list with the specified item as it's only value is returned
| o | the object |
| static String base64 | ( | String | val | ) | [static] |
| val | the value to be encoded |
| static String base85 | ( | String | val | ) | [static] |
| val | the value to be encoded |
| static boolean booleanValue | ( | Object | o | ) | [static] |
| o | the object |
| static void cacheData | ( | String | name, | |
| String | data | |||
| ) | [static] |
| name | the name to cache the item under (must be a valid file name) | |
| data | the data to cache |
| static void cacheData | ( | String | name, | |
| InputStream | in | |||
| ) | [static] |
| name | the name to cache the item under (must be a valid file name) | |
| in | the input stream to cache |
| static String charToString | ( | char | c | ) | [static] |
| c | the character |
| static String chop | ( | String | val, | |
| int | size | |||
| ) | [static] |
| val | the value to chop | |
| size | the amount of characters to chop |
| static String codeBase | ( | iWidget | context | ) | [static] |
| context | the widget context |
| static String codeBase | ( | ) | [static] |
| static String colorToHexString | ( | Color | c | ) | [static] |
| c | the color |
| static String colorToRGBString | ( | Color | c | ) | [static] |
| c | the color |
| static String convertDate | ( | iWidget | context, | |
| Object | date, | |||
| String | inputFormat, | |||
| String | outputFormat | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format | |
| inputFormat | the input format | |
| outputFormat | the output format |
| java.text.ParseException |
| static String convertDate | ( | iWidget | context, | |
| Object | date, | |||
| String | outputFormat | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format | |
| outputFormat | the output format |
| java.text.ParseException |
| static String convertDate | ( | iWidget | context, | |
| Object | date, | |||
| boolean | display | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format | |
| display | true to convert the date for display; false to convert the date to the item (server) format |
| java.text.ParseException |
| static String convertDate | ( | iWidget | context, | |
| Object | date | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format |
| java.text.ParseException |
| static String convertDateTime | ( | iWidget | context, | |
| Object | date, | |||
| boolean | display | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format | |
| display | true to convert the date for display; false to convert the date to the item (server) format |
| java.text.ParseException |
| static String convertDateTime | ( | iWidget | context, | |
| Object | date | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or date /calendar object in the default item format |
| java.text.ParseException |
| static ActionEx createAction | ( | String | name, | |
| String | text, | |||
| Icon | icon, | |||
| String | code | |||
| ) | [static] |
| name | the name of the action | |
| text | the text for the action | |
| icon | the icon | |
| code | the code to execute for the action |
| static File createAppFile | ( | String | appName, | |
| String | fileName | |||
| ) | [static] |
| appName | the name of the app | |
| fileName | the name of the file |
| static iBackgroundPainter createBackgroundPainter | ( | Color | bg | ) | [static] |
| bg | the background color |
| static Border createBorder | ( | iWidget | context, | |
| String | borderString | |||
| ) | [static] |
| context | the widget context | |
| borderString | the border string |
| static Icon createBorderIcon | ( | Border | border, | |
| Icon | icon | |||
| ) | [static] |
| border | the border | |
| icon | the icon to place the border around |
| static PushButtonWidget createButton | ( | iWidget | context, | |
| Object | o | |||
| ) | [static] |
| context | the context | |
| o | a parameter for the button (can be a string, icon, or action) |
| static PushButtonWidget createButton | ( | iWidget | context | ) | [static] |
| context | the context |
| static File createCacheFile | ( | String | name | ) | throws IOException [static] |
| name | the name of the file |
| static ObjectCache createCacheMap | ( | int | len, | |
| int | maxSize | |||
| ) | [static] |
The put(key,value) and get(key) methods can be used work with the cache
| len | the initial capacity for the map; | |
| maxSize | the maximum size the cache can grow (use -1 for a cache that only get purges when additional memory is needed) |
| static Calendar createCalendar | ( | String | spec | ) | [static] |
Examples of valid data/time specifiers are:
| spec | the date/time specification |
| static Icon createColorIcon | ( | final Color | color, | |
| final int | width, | |||
| final int | height, | |||
| final Border | border | |||
| ) | [static] |
| color | the color | |
| width | the width | |
| height | the height | |
| border | optional border |
| static CompoundBorderEx createCompoundBorder | ( | Border | firstBorder, | |
| Border | secondBorder | |||
| ) | [static] |
| firstBorder | the first border | |
| secondBorder | the second border |
| static CompoundIcon createCompoundIcon | ( | Icon | firstIcon, | |
| Icon | secondIcon | |||
| ) | [static] |
| firstIcon | the first icon | |
| secondIcon | the second icon |
| static CompoundPainter createCompoundPainter | ( | iPainter | firstPainter, | |
| iPainter | secondPainter | |||
| ) | [static] |
| firstPainter | the first painter | |
| secondPainter | the second painter |
| static Map createConcurrentHashMap | ( | int | len | ) | [static] |
| len | the initial capacity for the map; |
| static ContainsFilter createContainsFilter | ( | String | value, | |
| boolean | startsWith | |||
| ) | [static] |
| value | the value for the filter | |
| startsWith | whether to check only if the value being tested starts with the filter value |
| static Date createDate | ( | String | spec | ) | [static] |
Examples of valid data/time specifiers are:
| spec | the date/time specification |
| static Icon createEmptyIcon | ( | final int | width, | |
| final int | height, | |||
| final Color | borderColor | |||
| ) | [static] |
| width | the width for the icon | |
| height | the height for the icon | |
| borderColor | optional line border color |
| static EqualityFilter createEqualityFilter | ( | String | value, | |
| boolean | ignorecase | |||
| ) | [static] |
| value | the value to test for | |
| ignorecase | true if case should be ignored; false otherwise |
| static FileMutex createFileMutex | ( | String | file | ) | [static] |
| file | the file that backs the mutex |
FileMutex object | static FileMutex createFileMutex | ( | File | file | ) | [static] |
| file | the file that backs the mutex |
FileMutex object | static Grouper createGrouper | ( | ) | [static] |
| static Map createHashMap | ( | int | len | ) | [static] |
| len | the initial capacity for the map; |
| static Box createHorizontalBox | ( | ) | [static] |
If you want a Box that respects the component orientation you should create the Box using the constructor and pass in BoxLayout.LINE_AXIS, eg:
Box lineBox = new Box(BoxLayout.LINE_AXIS);
| static Component createHorizontalStrut | ( | int | width | ) | [static] |
In a horizontal box, you typically use this method to force a certain amount of space between two components. In a vertical box, you might use this method to force the box to be at least the specified width. The invisible component has no height unless excess space is available, in which case it takes its share of available space, just like any other component that has no maximum height.
| width | the width of the invisible component, in pixels >= 0 |
| static Icon createIcon | ( | URL | url | ) | [static] |
| url | the url |
| static Icon createIcon | ( | Image | image | ) | [static] |
| image | the image |
| static IconSeries createIconSeries | ( | boolean | horizontal, | |
| List | icons | |||
| ) | [static] |
| horizontal | true for a horizontal series; false for a vertical | |
| icons | the set of icons |
| static IconSeries createIconSeries | ( | boolean | horizontal, | |
| Icon... | icons | |||
| ) | [static] |
| horizontal | true for a horizontal series; false for a vertical | |
| icons | the set of icons |
| static Image createImage | ( | URL | url | ) | throws IOException [static] |
| url | the url |
| static BufferedImage createImage | ( | JComponent | comp | ) | [static] |
| comp | the component |
| static iImagePainter createImagePainter | ( | iWidget | context, | |
| String | painter | |||
| ) | [static] |
| context | the context | |
| painter | the painter string |
| static iImagePainter createImagePainter | ( | Image | image | ) | [static] |
| image | the image for the painter |
| static JSONArray createJSONArray | ( | Object | o | ) | [static] |
| o | a List,an array, a String or null |
| static JSONObject createJSONObject | ( | Object | o | ) | [static] |
| o | the object to use to populate the JSON object (can be null) |
| static KeyEvent createKeyEvent | ( | iWidget | w, | |
| String | keystroke | |||
| ) | [static] |
| w | the widget the event is targeted for | |
| keystroke | the keystroke string. The string must have the following syntax: <modifiers>* (<typedID> | <pressedReleasedID>) modifiers := shift | control | ctrl | meta | alt | altGraph typedID := typed <typedKey> typedKey := string of length 1 giving Unicode character. pressedReleasedID := (pressed | released) key key := KeyEvent key code name, i.e. the name following "VK_". |
| static LabelWidget createLabel | ( | iWidget | context | ) | [static] |
| context | the context |
| static Stroke createLineStroke | ( | String | style, | |
| float | thickness | |||
| ) | [static] |
| style | the style of the stroke ('solid', 'dotted', 'dashed') | |
| thickness | the thickness of the stroke |
| static List createList | ( | Object | obj | ) | [static] |
| obj | the initial capacity for the list or an array to populate the list with; |
| static ListBoxViewer createListBox | ( | iWidget | context, | |
| List< RenderableDataItem > | rows | |||
| ) | [static] |
| context | the widget context | |
| rows | the rows for the list (can be null) |
| static UtilityPanel createPanel | ( | ) | [static] |
By default the panel has a border layout
| static ImageIconEx createPunchedIcon | ( | Image | image, | |
| int | unblurredShadowSize_pixels | |||
| ) | [static] |
| image | the image | |
| unblurredShadowSize_pixels | the number of pixels to use for an un-blurred shadow |
| static RegularExpressionFilter createRegExFilter | ( | String | value, | |
| boolean | parse | |||
| ) | [static] |
| value | the value for the filter | |
| parse | true if the value is a wildcard expression that should be parsed to create the regular expression; false if the value represents a valid regular expression |
| 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 table (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 TextIcon createTextIcon | ( | String | text, | |
| Font | font | |||
| ) | [static] |
| text | the text for the icon (html is not supported) | |
| font | optional font for the text |
| static BufferedImage createTextImage | ( | String | text, | |
| Font | font, | |||
| Color | fg, | |||
| Color | bg, | |||
| Border | b, | |||
| boolean | square | |||
| ) | [static] |
| text | the text for the image (html is supported) | |
| font | optional font for the text | |
| fg | optional foreground color | |
| bg | optional background color | |
| b | optional border | |
| square | true to create a square image; false otherwise |
| static BufferedImage createTextImage | ( | String | text, | |
| Font | font | |||
| ) | [static] |
| text | the text for the image (html is supported) | |
| font | optional font for the text |
| static TextIcon createTextPainter | ( | String | text | ) | [static] |
| text | the text for the painter (html is not supported) |
| static JideToggleButtonEx createToggleButton | ( | ) | [static] |
| static iStringConverter<RenderableDataItem> createToStringConverter | ( | int | col | ) | [static] |
| col | the column |
| 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 TreeMap createTreeMap | ( | ) | [static] |
| static Box createVerticalBox | ( | ) | [static] |
If you want a Box that respects the component orientation you should create the Box using the constructor and pass in BoxLayout.PAGE_AXIS, eg:
Box lineBox = new Box(BoxLayout.PAGE_AXIS);
| static Component createVerticalStrut | ( | int | height | ) | [static] |
In a vertical box, you typically use this method to force a certain amount of space between two components. In a horizontal box, you might use this method to force the box to be at least the specified height. The invisible component has no width unless excess space is available, in which case it takes its share of available space, just like any other component that has no maximum width.
| height | the height of the invisible component, in pixels >= 0 |
| static Writer createWriter | ( | OutputStream | out, | |
| String | charset, | |||
| boolean | buffered | |||
| ) | throws UnsupportedEncodingException [static] |
| out | the output stream to use | |
| charset | the character set to use (use null for ISO-8859-1) | |
| buffered | to to buffer the output; false otherwise |
| UnsupportedEncodingException |
| 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 (null for the default format) |
| static String currentTime | ( | iWidget | context, | |
| String | format | |||
| ) | [static] |
| context | the widget context | |
| format | a format specified for the time output |
| static String currentTime | ( | String | format | ) | [static] |
| format | a format specified for the time output (null for the default format) |
| static long 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] |
Examples of valid data/time specifiers are:
| spec | the date/time 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 decode | ( | String | str | ) | [static] |
| static String decodeBase64 | ( | String | val | ) | [static] |
| val | the value to be decoded |
| static String decrypt | ( | String | val, | |
| String | key, | |||
| String | algorithm, | |||
| boolean | base64 | |||
| ) | [static] |
| val | the value to be decrypted | |
| key | the decryption key | |
| algorithm | the decryption algorithm | |
| base64 | true if input data is base 64 encoded; false otherwise |
| static void deleteFile | ( | File | file | ) | [static] |
| file | the file to delete |
| 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 void dprintln | ( | Object | o | ) | [static] |
| static void enableDebugLogging | ( | OutputStream | out | ) | [static] |
By default this only happens when the engine is running in debug mode
| out | and optional stream to send the output to |
| static String encode | ( | String | str | ) | [static] |
| static String encodeFull | ( | String | str | ) | [static] |
| static String encrypt | ( | String | val, | |
| String | key, | |||
| String | algorithm, | |||
| boolean | base64 | |||
| ) | [static] |
| val | the value to be encrypted | |
| key | the encryption key | |
| algorithm | the encryption algorithm | |
| base64 | true to encode the data as base 64; false otherwise |
| static void eprintln | ( | Object | o | ) | [static] |
| o | the object to print |
| static String escape | ( | String | val | ) | [static] |
| val | the value to encode |
| static String escapeHTML | ( | String | str, | |
| boolean | whitespace, | |||
| boolean | addHTMLTag | |||
| ) | [static] |
| str | the string to encode | |
| whitespace | true to handle whitespace; false otherwise | |
| addHTMLTag | true to add the surrounding HTML tags; false otherwise |
| static String expand | ( | String | pattern, | |
| String... | args | |||
| ) | [static] |
This method should be faster than format
| pattern | the printf-style pattern | |
| args | the arguments |
| static Widget findWidget | ( | Widget | w, | |
| String | name, | |||
| boolean | useNameMap | |||
| ) | [static] |
| w | the widget to search | |
| name | the name of the widget to find | |
| useNameMap | true to use a name map to improve future search performance; false otherwise |
| static float floatValue | ( | String | s | ) | [static] |
String that don't start with a numeric sequence always return zero
| s | the string |
| static void focusLater | ( | final iWidget | widget | ) | [static] |
| widget | the widget to request focus for |
| static String format | ( | String | pattern, | |
| Object... | args | |||
| ) | throws ParseException [static] |
| pattern | If the object is a number then a number format pattern, if the object is a Date or Calendar then a date format pattern otherwise a printf-style pattern | |
| args | the arguments |
| static String generateKey | ( | String | password, | |
| String | salt, | |||
| int | iteration | |||
| ) | [static] |
| password | the password | |
| salt | the salt | |
| iteration | the iteration |
| static String generateSalt | ( | int | bytes | ) | [static] |
| bytes | the number of bytes to generate |
| static List<WindowViewer> getAllPopupWindowViewers | ( | ) | [static] |
| static ImageIconEx getAnimatedSpinner | ( | ) | [static] |
| static iPainter getAnimatedSpinnerPainter | ( | ) | [static] |
| static iPainter getAnimatedSpinnerPainterSmall | ( | ) | [static] |
| static ImageIconEx getAnimatedSpinnerSmall | ( | ) | [static] |
| static String getBrowserSessionCookie | ( | String | url, | |
| String | name | |||
| ) | [static] |
| url | the url for the cookie | |
| name | the name of the cookie |
| static Object getCachedData | ( | String | name, | |
| boolean | asString | |||
| ) | [static] |
| name | the name used to cache the data | |
| asString | true to return the data as a string; false to return the InputStream |
| static Border getDefaultLineBorder | ( | ) | [static] |
| static Image getImage | ( | JComponent | comp, | |
| Icon | icon | |||
| ) | [static] |
| comp | the component to use if the icon needs to be rendered | |
| icon | the icon |
| static String getInheritanceTree | ( | Object | o | ) | [static] |
| o | the object |
| DOXYGEN_SKIP static String getJavaVersion | ( | ) | [static] |
| static String getLastDomainName | ( | ) | [static] |
| static String getLastPasswordHash | ( | ) | [static] |
| static String getLastUserName | ( | ) | [static] |
| static int getLineHeight | ( | Component | c | ) | [static] |
| c | the component |
| static String getLines | ( | String | s, | |
| int | lines | |||
| ) | [static] |
The string is parsed for linefeeds and the specified number of lines are returned.
| s | the string to parse | |
| lines | the number of lines to return |
| static Rectangle getMonitorBounds | ( | Component | c | ) | [static] |
| c | the component |
| static List<String> getMonths | ( | ) | [static] |
| static List<String> getMonthsShortNames | ( | ) | [static] |
| static String getOs | ( | ) | [static] |
| static String getOsVersion | ( | ) | [static] |
| static List<Window> getPopupAllWindow | ( | ) | [static] |
| static Preferences getPreferences | ( | String | appKey | ) | [static] |
| appKey | the name for the preferences. This is the unique name for the application |
| static float getRelativeFontSize | ( | ) | [static] |
| static Dimension getScreenSize | ( | ) | [static] |
| static ImageIconEx getToolkitIcon | ( | URL | url | ) | [static] |
| url | the url for the icon |
| static Image getToolkitImage | ( | URL | url | ) | [static] |
| url | the url for the image |
| static UIDefaults getUIDefaults | ( | ) | [static] |
| static String getURLQueryParameter | ( | String | url, | |
| String | param | |||
| ) | [static] |
| url | the url | |
| param | the name of the parameter |
| static String hmacMD5 | ( | String | val, | |
| String | key, | |||
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| key | the key | |
| hexout | true to return the value as a hex string; false otherwise |
| static String hmacSHA | ( | String | val, | |
| String | key, | |||
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| key | the key | |
| hexout | true to return the value as a hex string; false otherwise |
| static String htmlReplace | ( | String | s, | |
| Pattern | urlPattern, | |||
| String | replacement, | |||
| boolean | escape, | |||
| String | tag | |||
| ) | [static] |
string not contained within < >
| s | the string | |
| urlPattern | the regular expression to use to test if a string segment matches what you want to replace | |
| replacement | the replacement string | |
| escape | true to escape the special html characters; false otherwise | |
| tag | optional html tag to surround the text with (e.g. 'html' or 'div') |
| static String htmlWordWrap | ( | String | s, | |
| final int | width, | |||
| final boolean | html_tag | |||
| ) | [static] |
| s | the string to wrap | |
| width | the maximum line width | |
| html_tag | true to add the surround the text with the html tags |
| static void installResponseCache | ( | String | name, | |
| int | mbMaxSize, | |||
| boolean | deleteOnExit | |||
| ) | [static] |
| name | the name for the cache (must be a valid directory name) | |
| mbMaxSize | the maximum size for the cache in mega bytes | |
| deleteOnExit | try to delete the cache on exit; false otherwise |
| static int intValue | ( | Object | o | ) | [static] |
String's that don't start with a numeric sequence always return zero
| o | the object |
| static boolean isJava6OrAbove | ( | ) | [static] |
true if the application is running on JDK 6 and above, false otherwise. | static boolean isJava6Update10OrAbove | ( | ) | [static] |
true if the application is running on JDK 6 and above, false otherwise. | static boolean isJava7OrAbove | ( | ) | [static] |
true if the application is running on JDK 1.7 and above, false otherwise. | static boolean isLinux | ( | ) | [static] |
| static boolean isMac | ( | ) | [static] |
| static boolean isOptimizationEnabled | ( | ) | [static] |
| static boolean isPrintableChar | ( | char | c | ) | [static] |
| c | the character to test |
| static boolean isRunningInBackground | ( | ) | [static] |
| static boolean isStrictScriptingMode | ( | ) | [static] |
| static boolean isUnix | ( | ) | [static] |
| static boolean isWindows | ( | ) | [static] |
| static boolean isWindows7OrAbove | ( | ) | [static] |
| static String join | ( | Object[] | array, | |
| String | sep | |||
| ) | [static] |
| array | the object array | |
| sep | the item separator |
| static String join | ( | List | list, | |
| String | sep | |||
| ) | [static] |
| list | the object array | |
| sep | the item separator |
| 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 Map<String, ActionEx> loadActions | ( | iWidget | context, | |
| ActionLink | link | |||
| ) | throws Exception [static] |
| context | the context | |
| link | the link to the configuration file |
| Exception |
| static Map<String, ImageIconEx> loadResourceIcons | ( | iWidget | context, | |
| ActionLink | link | |||
| ) | throws IOException [static] |
| context | the context | |
| link | the link to the properties file |
| IOException |
| static Map<String, String> 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 within the template itself |
| IOException |
| static long longValue | ( | Object | o | ) | [static] |
String that don't start with a numeric sequence always return zero
| o | the object |
| static String lowerCase | ( | String | val | ) | [static] |
| val | the string |
| static String mac | ( | String | val, | |
| String | key, | |||
| String | algorithm, | |||
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| key | the key | |
| algorithm | the mac algorithm | |
| hexout | true to return the value as a hex string; false otherwise |
| static String makeHyperlinks | ( | String | s, | |
| boolean | escape, | |||
| String | tag | |||
| ) | [static] |
| s | the string to hyperlinks | |
| escape | true to escape the special html characters; false otherwise | |
| tag | optional html tag to surround the text with (e.g. 'html' or 'div') |
| static Component makeResizable | ( | iWidget | w, | |
| boolean | createCorner, | |||
| Icon | cornerIcon | |||
| ) | [static] |
| w | the widget | |
| createCorner | true to create a corner resizing component; false otherwise | |
| cornerIcon | the optional icon (min 16x16) for the corner |
| static Component makeResizable | ( | Component | comp, | |
| boolean | createCorner, | |||
| Icon | cornerIcon | |||
| ) | [static] |
| comp | the component | |
| createCorner | true to create a corner resizing component; false otherwise | |
| cornerIcon | the optional icon (min 16x16) for the corner |
| static String md5 | ( | String | val, | |
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| hexout | true to return the value as a hex string; false otherwise |
| static String md5 | ( | String | val | ) | [static] |
| val | the value |
| static long nanoTime | ( | ) | [static] |
| static void notifyWaiter | ( | Object | object, | |
| boolean | all | |||
| ) | [static] |
| object | the object being waited on | |
| all | true to notify all waiters; false to only notify one waiter |
| static Date parseDateString | ( | iWidget | context, | |
| String | date, | |||
| String | inputFormat | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string | |
| inputFormat | the input format |
| java.text.ParseException |
| static Date parseDateString | ( | iWidget | context, | |
| String | date | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or object in the default item format |
| java.text.ParseException |
| static Date parseDateTimeString | ( | iWidget | context, | |
| String | date | |||
| ) | throws ParseException [static] |
| context | the context | |
| date | the date string or object in the default item format |
| java.text.ParseException |
| static Map<String, String> parseOptionsString | ( | String | options, | |
| char | delimiter, | |||
| boolean | unquote | |||
| ) | [static] |
The options are name/value pairs separated by an equal sign
| options | the string of options | |
| delimiter | the delimiter that separates options | |
| unquote | true to unquote and decode strings |
| static Map<String, String> parseOptionsString | ( | String | options | ) | [static] |
The options are name/value pairs separated by an equal sign. Individual options are assumed to be separated by an ampersand
| options | the string of options |
| 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 String piece | ( | String | val, | |
| String | tok, | |||
| int | start | |||
| ) | [static] |
| val | the string | |
| tok | the token | |
| start | the position if the starting token to retrieve |
| static String piece | ( | String | val, | |
| String | tok | |||
| ) | [static] |
| val | the string | |
| tok | the token |
| static void populateViewerWdgetValues | ( | iWidget | context, | |
| Viewer | viewer, | |||
| Map | values | |||
| ) | [static] |
| context | a context to use tor resolve values | |
| viewer | the configuration to populate | |
| values | a map of name/value pairs (name paths are supported). Values must be strings |
| static void populateViewerWdgetValues | ( | iFormViewer | fv, | |
| Map | values | |||
| ) | [static] |
| fv | the form viewer | |
| values | a map of name/value pairs (name paths are supported). Values must be strings |
| static void print | ( | Object... | o | ) | [static] |
| o | the object to print |
| static void printDocument | ( | iWidget | context, | |
| String | url | |||
| ) | throws IOException, PrintException [static] |
| context | the context | |
| url | the document to print |
| IOException | ||
| PrintException |
| 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 quote | ( | String | str | ) | [static] |
| str | the String |
| static String random | ( | String | val | ) | [static] |
| val | a number representing an upper bound for the random number |
| static String random | ( | ) | [static] |
| static long randomLong | ( | long | max | ) | [static] |
| max | a number representing an upper bound for the random number |
| static long randomLong | ( | ) | [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 |
| IOException |
| static MouseKeyStrokeTimeoutHandler registerMouseKeyStrokeTimeoutHandler | ( | AppContext | app, | |
| int | seconds, | |||
| String | code | |||
| ) | [static] |
Note: Does not work when running in a sandbox
| app | the application context | |
| seconds | the number of seconds | |
| code | the code to execute |
| static Map removeAll | ( | Map | main, | |
| Map | remove | |||
| ) | [static] |
| main | the main map | |
| remove | the map containing the shared elements |
| static void removeCachedData | ( | String | name | ) | [static] |
| name | the name to cache the item under (must be a valid file name) |
| static String removeHTMLMarkup | ( | String | text | ) | [static] |
| text | the text to remove the markup from |
| static void removeMouseKeyStrokeTimeoutHandler | ( | MouseKeyStrokeTimeoutHandler | handler | ) | [static] |
| 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 Object resolveUIProperty | ( | iWidget | context, | |
| String | value | |||
| ) | [static] |
| context | the context | |
| value |
| static void restoreAntialiasHint | ( | Graphics2D | g, | |
| Object | oldHint | |||
| ) | [static] |
| g | the graphics | |
| oldHint | the old anti-alias hint |
| static void retargetKeyEvent | ( | KeyEvent | e, | |
| Component | target | |||
| ) | [static] |
| e | the event | |
| target | the target |
| static void retargetMouseEvent | ( | MouseEvent | e, | |
| Component | target | |||
| ) | [static] |
| e | the event | |
| target | the target |
| static String rformat | ( | iWidget | context, | |
| String | resource_string, | |||
| Object... | args | |||
| ) | [static] |
| context | the context | |
| resource_string | the resource string representing a the printf-style pattern | |
| args | the arguments |
| static Image scaleImage | ( | BufferedImage | img, | |
| int | width, | |||
| int | height, | |||
| ScalingType | type, | |||
| boolean | proportional | |||
| ) | [static] |
| img | the image to scale | |
| width | the scale width | |
| height | the scale height | |
| type | the type of scaling to do | |
| proportional | true to maintain proportions; false to force to the specified size |
| 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 setAnimatedSpinner | ( | ImageIconEx | icon | ) | [static] |
| icon | the default animated spinner |
| static void setAnimatedSpinnerSmall | ( | ImageIconEx | icon | ) | [static] |
| icon | the default small animated spinner |
| static void setBackgroundOverlayPainter | ( | JComponent | c, | |
| iPainter | p | |||
| ) | [static] |
| c | the component | |
| p | the painter |
| static void setBackgroundPainter | ( | JComponent | c, | |
| iBackgroundPainter | bp | |||
| ) | [static] |
| c | the component | |
| bp | the painter |
| static void setBrowserSessionCookie | ( | String | url, | |
| String | value | |||
| ) | [static] |
| url | the url for the cookie | |
| value | the value of the cookie |
| static void setBrowserSessionCookies | ( | List< Cookie > | cookies | ) | [static] |
| cookies | the list of cookies |
| static void setOptimizationEnabled | ( | boolean | enabled | ) | [static] |
| enabled | true to enable; false otherwise |
| static void setOverlayPainter | ( | JComponent | c, | |
| iPainter | p | |||
| ) | [static] |
| c | the component | |
| p | the overlay painter |
| static void setRelativeFontSize | ( | float | size | ) | [static] |
| size | the relative size (1.0 = normal size) |
| static void setSelectionState | ( | iWidget | w, | |
| boolean | hasSelection | |||
| ) | [static] |
This method does not actually affect the state of the widget. What is does is fire a selection change property that actions like copy and delete listen for. Use it to toggle these actions when you are managing selections and copy and delete for a widget
| w | the widget | |
| hasSelection | true if the widget has a selection; false otherwise |
| static void setStrictScriptingMode | ( | boolean | strict | ) | [static] |
| strict | true for strict mode; false otherwise |
| static Object setupAntialiasPainting | ( | Graphics2D | g | ) | [static] |
| g | the graphics |
| static String sha1 | ( | String | val, | |
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| hexout | true to return the value as a hex string; false otherwise |
| static String sha1 | ( | byte[] | val, | |
| boolean | hexout | |||
| ) | [static] |
| val | the value | |
| hexout | true to return the value as a hex string; false otherwise |
| static String sha1 | ( | 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 stringValue | ( | Object | obj | ) | [static] |
| obj | the object |
| static String stringValue | ( | long | number | ) | [static] |
| number | the integer |
| static String stringValue | ( | int | number | ) | [static] |
| number | the integer |
| static String stripMnemonic | ( | String | text | ) | [static] |
| text | the text |
| 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 void systemPrintDocument | ( | iWidget | context, | |
| String | url | |||
| ) | throws IOException [static] |
| context | the context | |
| url | the document to print |
| IOException |
| static String timeExecution | ( | String | code, | |
| int | iteration | |||
| ) | throws ScriptException [static] |
| code | the code to execute | |
| iteration | the number of times to execute the code (defaults is one) |
| ScriptException |
| static String titleCase | ( | String | val, | |
| String | wordSeparators | |||
| ) | [static] |
| val | the string | |
| wordSeparators | a string containing word separator characters |
| static String titleCase | ( | String | val | ) | [static] |
| val | the string |
| static String toExternalForm | ( | URL | url | ) | [static] |
| url | the URL |
| static String tokenReplacement | ( | String | s, | |
| String | what, | |||
| String | with, | |||
| boolean | html, | |||
| String | prefix, | |||
| String | suffix, | |||
| int | maxLineCount | |||
| ) | [static] |
| s | the string containing linefeeds | |
| what | the token to replace | |
| with | what to replace the token with | |
| html | true to enclose the string between <html></html> ; false otherwise | |
| prefix | optional prefix | |
| suffix | optional suffix | |
| maxLineCount | then maximum number of lines to return. If specified and there is more than maxLineCount then the string is truncated to maxLineCount and '...' is appended to the end of the string |
| static String tokenToHTMLBreak | ( | String | s, | |
| String | tok, | |||
| boolean | html, | |||
| String | prefix, | |||
| String | suffix, | |||
| int | maxLineCount | |||
| ) | [static] |
| s | the string containing linefeeds | |
| tok | the token to replace | |
| html | true to enclose the string between <html></html> ; false otherwise | |
| prefix | optional prefix | |
| suffix | optional suffix | |
| maxLineCount | then maximum number of lines to return. If specified and there is more than maxLineCount then the string is truncated to maxLineCount and '...' is appended to the end of the string |
| static String tokenToHTMLBreak | ( | String | s, | |
| String | tok, | |||
| boolean | html | |||
| ) | [static] |
| s | the string containing linefeeds | |
| tok | the token to replace | |
| html | true to enclose the string between <html></html> ; false otherwise then the string is truncated to maxLineCount and '...' is appended to the end of the string |
| static String trim | ( | String | val | ) | [static] |
| val | the string |
| static String unescape | ( | String | val | ) | [static] |
| val | the value to be cleaned |
| static String unescapeQuotedString | ( | String | val | ) | [static] |
| val | the value to be cleaned |
| static List<RenderableDataItem> ungroup | ( | List< RenderableDataItem > | list, | |
| int | groupings, | |||
| List< RenderableDataItem > | out | |||
| ) | [static] |
| list | the grouped list | |
| groupings | the number of column groupings | |
| out | the list to use to store the results (can be null) |
| static void updateUIColor | ( | iWidget | context, | |
| String | name, | |||
| Object | value | |||
| ) | [static] |
| context | the context | |
| name | the name of the color | |
| value | the new value |
| static String upperCase | ( | String | val | ) | [static] |
| val | the string |
| static String utf8String | ( | String | value | ) | [static] |
| value | the value to convert |
| static void waitFor | ( | Object | object, | |
| long | timeout | |||
| ) | throws InterruptedException [static] |
| object | the object to wait on | |
| timeout | the maximum time to wait (use -1 to wait until notified |
| InterruptedException |