public class CmsUploadProgessInfo
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符和类型 | 类和说明 |
---|---|
static class |
CmsUploadProgessInfo.UPLOAD_STATE
A enum for the upload state.
|
构造器和说明 |
---|
CmsUploadProgessInfo()
Default constructor.
|
CmsUploadProgessInfo(int currentFile,
int percent,
CmsUploadProgessInfo.UPLOAD_STATE state,
long contentLength,
long bytesRead)
Constructor with parameters.
|
限定符和类型 | 方法和说明 |
---|---|
long |
getBytesRead()
Returns the bytesRead.
|
long |
getContentLength()
Returns the contentLength.
|
int |
getCurrentFile()
Returns the currentFile.
|
int |
getPercent()
Returns the percent.
|
CmsUploadProgessInfo.UPLOAD_STATE |
getState()
Returns the state.
|
void |
setBytesRead(long bytesRead)
Sets the bytesRead.
|
void |
setContentLength(long contentLength)
Sets the contentLength.
|
void |
setCurrentFile(int currentFile)
Sets the currentFile.
|
void |
setPercent(int percent)
Sets the percent.
|
void |
setState(CmsUploadProgessInfo.UPLOAD_STATE state)
Sets the state.
|
public CmsUploadProgessInfo()
public CmsUploadProgessInfo(int currentFile, int percent, CmsUploadProgessInfo.UPLOAD_STATE state, long contentLength, long bytesRead)
currentFile
- the current file countpercent
- the progress in percentstate
- the statecontentLength
- the content length of the upload requestbytesRead
- the count of bytes read so farpublic long getBytesRead()
public long getContentLength()
public int getCurrentFile()
public int getPercent()
public CmsUploadProgessInfo.UPLOAD_STATE getState()
public void setBytesRead(long bytesRead)
bytesRead
- the bytesRead to setpublic void setContentLength(long contentLength)
contentLength
- the contentLength to setpublic void setCurrentFile(int currentFile)
currentFile
- the currentFile to setpublic void setPercent(int percent)
percent
- the percent to setpublic void setState(CmsUploadProgessInfo.UPLOAD_STATE state)
state
- the state to set