◆ executeLongOperation() [1/2]
static void org.turro.zkoss.util.LongOperation.executeLongOperation |
( |
Component |
component, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 38 of file LongOperation.java.
static void executeLongOperation(Component component, final Command command)
◆ executeLongOperation() [2/2]
static void org.turro.zkoss.util.LongOperation.executeLongOperation |
( |
final Component |
component, |
|
|
final String |
busyMsg, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 42 of file LongOperation.java.
43 if(!Strings.isBlank(busyMsg)) {
44 Clients.showBusy(busyMsg);
46 component.addEventListener(LONG_OPERATION_EVENT,
new EventListener<Event>() {
48 public void onEvent(Event event)
throws Exception {
49 Context ctx =
new Context();
51 if(!Strings.isBlank(busyMsg)) {
54 component.removeEventListener(LONG_OPERATION_EVENT,
this);
57 Events.echoEvent(LONG_OPERATION_EVENT, component,
null);
The documentation for this class was generated from the following file: