public class Binder extends Object
Modifier and Type | Method and Description |
---|---|
void |
after(String command,
Function func)
Registers a callback after some command executed.
|
void |
command(String command,
Map args,
Map opts,
int timeout)
Post a command to the binder
|
void |
destroy()
Destroy this binder.
|
void |
globalCommand(String command,
Map args,
Map opts,
int timeout)
Post a global command from the binder.
|
static void |
postCommand(DOMElement dom,
String command,
Map args,
Map opts,
int timeout)
Post a command to the binder from the give dom element.
|
static void |
postGlobalCommand(DOMElement dom,
String command,
Map args,
int timeout)
Post a global command from the binder of the give dom element.
|
void |
unAfter(String command,
Function func)
Unregisters a callback after some command executed.
|
void |
upload(String cmd,
File file)
Post a upload command to the binder
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void after(String command, Function func)
command
- the name of the commandfunc
- the function to executepublic void unAfter(String command, Function func)
command
- the name of the commandfunc
- the function to executepublic void destroy()
public void command(String command, Map args, Map opts, int timeout)
command
- the name of the commandargs
- the arguments for this command. (the value should be json type)opts
- a map of options to zk.Event, if any.timeout
- the time (milliseconds) to wait before sending the request.public void globalCommand(String command, Map args, Map opts, int timeout)
command
- the name of the commandargs
- the arguments for this command. (the value should be json type)opts
- a map of options to zk.Event, if any.timeout
- the time (milliseconds) to wait before sending the request.public void upload(String cmd, File file)
cmd
- the name of the commandfile
- the file to upload. (the value should be a file type)public static void postCommand(DOMElement dom, String command, Map args, Map opts, int timeout)
dom
- the target of the dom element.command
- the name of the commandargs
- the arguments for this command. (the value should be json type)opts
- a map of options to zk.Event, if any.timeout
- the time (milliseconds) to wait before sending the request.public static void postGlobalCommand(DOMElement dom, String command, Map args, int timeout)
dom
- the target of the dom element.command
- the name of the commandargs
- the arguments for this command. (the value should be json type)timeout
- the time (milliseconds) to wait before sending the request.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.