-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How to run some code (that operation takes a few seconds) after closing a dialog. If I perform code inside event listener then dialog still opened
Messagebox.show("message", "title", Messagebox.OK | Messagebox.CANCEL, new EventListener<Event>() {
public void onEvent(Event evt) throws InterruptedException {
if (Button.OK.event.equals(evt.getName())) {
doLongTimeOperation();
}
}});
maybe some callback to main thread exists in ZK ?
See this Stackoverflow FOrum it will resolved your issue..
Asked: 2013-03-24 21:20:23 +0800
Seen: 38 times
Last updated: Mar 25 '13
2sjoshi sorry, you wrote "See this Stackoverflow FOrum..." but I can't reply directly to you answer :) Sorry, but I don't understand how that example can help for me? I made example with my usecase http://zkfiddle.org/sample/2ouiipu/1-Another-new-ZK-fiddle
siarheinavatski ( 2013-03-25 21:03:29 +0800 )edit