Package org.wicketstuff.html5.fileapi
Class FileList
java.lang.Object
org.wicketstuff.html5.fileapi.FileList
- All Implemented Interfaces:
Serializable,IClusterable
Represents the FileList type from the Html5 FileApi. Contains a fix sized array of
Html5File-s.- Author:
- akiraly
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileList
public FileList(int numOfFiles) Constructor.- Parameters:
numOfFiles- number of files in the list, non-negative
-
-
Method Details
-
set
Sets a file in the list.- Parameters:
index- the position of the file in the listfile- file to be set, not null
-
get
Retrieves a file from the list.- Parameters:
index- the position of the file in the list- Returns:
- file, can be null if it was not set
-
getNumOfFiles
public int getNumOfFiles()Returns size of the file array.- Returns:
- number of file slots
-
getSize
public long getSize()Returns the total byte size of the files in the list.- Returns:
- size in bytes
-