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 |
eval(String expression)
Invokes a JavaScript expression on the client.
|
static void |
eval(String expression,
IResponseCallback<?> callback)
Invokes a JavaScript expression on the client, returning the result asynchronously.
|
static void |
invoke(ClientInvocation invocation)
Perform a client invocation on the active page.
|
static void |
invoke(String function,
IResponseCallback<?> callback,
Object... args)
Invoke a function 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, IResponseCallback<?> callback, Object... args)
function - Name of the function to invoke.callback - Optional callback for invocation result.args - Arguments to pass to the function.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 invoke(ClientInvocation invocation)
invocation - The client invocation.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 eval(String expression, IResponseCallback<?> callback)
expression - A valid JavaScript expression.callback - Optional callback for invocation result.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.Copyright © 2018 Fujion Framework. All rights reserved.