public class ClientUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
busy(BaseUIComponent target,
String message)
Creates a busy message covering the specified target.
|
static void |
canClose(boolean value)
Sets the canClose parameter on the client.
|
static void |
eval(String expression)
Invokes a JavaScript expression on the client.
|
static void |
invoke(String function,
Object... args)
Invoke a function on the client.
|
static void |
redirect(String target)
Redirects the client.
|
static void |
redirect(String target,
String window)
Redirects the client.
|
static void |
saveToFile(String content,
String mimeType,
String fileName)
Saves content as a file on the client machine.
|
static void |
submit(BaseComponent form)
Submits a form.
|
public static void invoke(String function, Object... args)
function - Name of the function to invoke.args - Arguments to pass to the function.public static void redirect(String target)
target - URL of the redirect target.public static void redirect(String target, String window)
target - URL of the redirect target.window - Name of the window that will be redirected. A null value redirects the current
window.public static void eval(String expression)
expression - A valid JavaScript expression.public static void submit(BaseComponent form)
form - Root component of the form.public static void busy(BaseUIComponent target, String message)
target - The target of the busy message.message - The message to be displayed. If null, any existing message is removed.public static void canClose(boolean value)
value - The value for the canClose parameter.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.