Package org.opencms.gwt.shared
Class CmsUploadProgessInfo
- java.lang.Object
-
- org.opencms.gwt.shared.CmsUploadProgessInfo
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsUploadProgessInfo extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A bean that holds the upload progress infos.- Since:
- 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsUploadProgessInfo.UPLOAD_STATE
A enum for the upload state.
-
Constructor Summary
Constructors Constructor Description CmsUploadProgessInfo()
Default constructor.CmsUploadProgessInfo(int currentFile, int percent, CmsUploadProgessInfo.UPLOAD_STATE state, long contentLength, long bytesRead)
Constructor with parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
CmsUploadProgessInfo
public CmsUploadProgessInfo()
Default constructor.
-
CmsUploadProgessInfo
public CmsUploadProgessInfo(int currentFile, int percent, CmsUploadProgessInfo.UPLOAD_STATE state, long contentLength, long bytesRead)
Constructor with parameters.- Parameters:
currentFile
- the current file countpercent
- the progress in percentstate
- the statecontentLength
- the content length of the upload requestbytesRead
- the count of bytes read so far
-
-
Method Detail
-
getBytesRead
public long getBytesRead()
Returns the bytesRead.- Returns:
- the bytesRead
-
getContentLength
public long getContentLength()
Returns the contentLength.- Returns:
- the contentLength
-
getCurrentFile
public int getCurrentFile()
Returns the currentFile.- Returns:
- the currentFile
-
getPercent
public int getPercent()
Returns the percent.- Returns:
- the percent
-
getState
public CmsUploadProgessInfo.UPLOAD_STATE getState()
Returns the state.- Returns:
- the state
-
setBytesRead
public void setBytesRead(long bytesRead)
Sets the bytesRead.- Parameters:
bytesRead
- the bytesRead to set
-
setContentLength
public void setContentLength(long contentLength)
Sets the contentLength.- Parameters:
contentLength
- the contentLength to set
-
setCurrentFile
public void setCurrentFile(int currentFile)
Sets the currentFile.- Parameters:
currentFile
- the currentFile to set
-
setPercent
public void setPercent(int percent)
Sets the percent.- Parameters:
percent
- the percent to set
-
setState
public void setState(CmsUploadProgessInfo.UPLOAD_STATE state)
Sets the state.- Parameters:
state
- the state to set
-
-