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 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 ClassesModifier and TypeClassDescriptionstatic enumA enum for the upload state. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CmsUploadProgessInfo(int currentFile, int percent, CmsUploadProgessInfo.UPLOAD_STATE state, long contentLength, long bytesRead) Constructor with parameters. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the bytesRead.longReturns the contentLength.intReturns the currentFile.intReturns the percent.getState()Returns the state.voidsetBytesRead(long bytesRead) Sets the bytesRead.voidsetContentLength(long contentLength) Sets the contentLength.voidsetCurrentFile(int currentFile) Sets the currentFile.voidsetPercent(int percent) Sets the percent.voidSets the state.
-
Constructor Details
-
CmsUploadProgessInfo
public CmsUploadProgessInfo()Default constructor.
-
-
Method Details
-
getBytesRead
Returns the bytesRead.- Returns:
- the bytesRead
-
getContentLength
Returns the contentLength.- Returns:
- the contentLength
-
getCurrentFile
Returns the currentFile.- Returns:
- the currentFile
-
getPercent
Returns the percent.- Returns:
- the percent
-
getState
Returns the state.- Returns:
- the state
-
setBytesRead
Sets the bytesRead.- Parameters:
bytesRead- the bytesRead to set
-
setContentLength
Sets the contentLength.- Parameters:
contentLength- the contentLength to set
-
setCurrentFile
Sets the currentFile.- Parameters:
currentFile- the currentFile to set
-
setPercent
Sets the percent.- Parameters:
percent- the percent to set
-