LongTimeDialog dialog = UITools.getDialog(this);
dialog.setTitle("正在加载数据...");
dialog.setLongTimeTask(new ILongTimeTask() {
public Object exec() throws Exception {
//需要执行的代码
return "SUCCESS";
}
public void afterExec(Object res) throws Exception {
}
});
dialog.show();