Package org.zkoss.zk.ui.event

Examples of org.zkoss.zk.ui.event.UploadEvent


      _result.clear();
    else {
      final Desktop desktop = Executions.getCurrent().getDesktop();
      final Configuration config = desktop .getWebApp().getConfiguration();
      if (!config.isEventThreadEnabled())
        Events.postEvent(new UploadEvent(Events.ON_UPLOAD, (Component)desktop.getAttribute(ATTR_FILEUPLOAD_TARGET), getResult()));
    }
    detach();
  }
View Full Code Here


    if ("updateResult".equals(request.getCommand())) {
      final Map data = request.getData();
      Desktop desktop = request.getDesktop();
      final String uuid = (String) request.getData().get("wid");
      final String sid = (String) request.getData().get("sid");
      Events.postEvent(new UploadEvent(Events.ON_UPLOAD,
          desktop.getComponentByUuid(uuid),
          parseResult((List)AuRequests.getUpdateResult(request))));

      Map precent = (Map) desktop.getAttribute(Attributes.UPLOAD_PERCENT);
      Map size = (Map)desktop.getAttribute(Attributes.UPLOAD_SIZE);
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.event.UploadEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.