org.meshcms.webui
Class UploadProgressListener

java.lang.Object
  extended byorg.meshcms.webui.UploadProgressListener
All Implemented Interfaces:
org.apache.commons.fileupload.ProgressListener

public class UploadProgressListener
extends java.lang.Object
implements org.apache.commons.fileupload.ProgressListener


Field Summary
static java.text.NumberFormat PERCENT_FORMAT
           
static java.lang.String UPLOAD_PROGRESS_LISTENER
           
 
Constructor Summary
UploadProgressListener(javax.servlet.http.HttpSession session)
           
 
Method Summary
 java.lang.String getPercent()
           
 double getProgress()
           
 boolean isCompleted()
           
 void update(long bytesRead, long contentLength, int items)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPLOAD_PROGRESS_LISTENER

public static final java.lang.String UPLOAD_PROGRESS_LISTENER
See Also:
Constant Field Values

PERCENT_FORMAT

public static java.text.NumberFormat PERCENT_FORMAT
Constructor Detail

UploadProgressListener

public UploadProgressListener(javax.servlet.http.HttpSession session)
Method Detail

update

public void update(long bytesRead,
                   long contentLength,
                   int items)
Specified by:
update in interface org.apache.commons.fileupload.ProgressListener

getProgress

public double getProgress()

getPercent

public java.lang.String getPercent()

isCompleted

public boolean isCompleted()