org.zkoss.zk.ui.ext.client
Interface Updatable

All Known Implementing Classes:
Fileupload.ExtraCtrl, FileuploadDlg.ExtraCtrl, Panel.ExtraCtrl, Portalchildren.ExtraCtrl

public interface Updatable

Implemented by the object returned by ComponentCtrl.getExtraCtrl() if a component supports special updates (other than async-update).

Supported special updates

File upload

  1. Component uses to use inner-frame or other mechanism to submit a file to DHtmlUpdateServlet's /upload.
  2. DHtmlUpdateServlet than store the result in desktop's attribute, and ask client to do a standard async-update called updateResult.
  3. When client sends the updateResult request to the server, server invokes setResult(java.lang.Object) to put the upload result to the component.

Author:
tomyeh

Method Summary
 void setResult(java.lang.Object result)
          Sets the result when it is updated from the client successfully.
 

Method Detail

setResult

void setResult(java.lang.Object result)
Sets the result when it is updated from the client successfully.



Copyright © 2005-2009 Potix Corporation. All Rights Reserved.