Class FileList

java.lang.Object
org.wicketstuff.html5.fileapi.FileList
All Implemented Interfaces:
Serializable, IClusterable

public class FileList extends Object implements IClusterable
Represents the FileList type from the Html5 FileApi. Contains a fix sized array of Html5File-s.
Author:
akiraly
See Also:
  • Constructor Details

    • FileList

      public FileList(int numOfFiles)
      Constructor.
      Parameters:
      numOfFiles - number of files in the list, non-negative
  • Method Details

    • set

      public void set(int index, Html5File file)
      Sets a file in the list.
      Parameters:
      index - the position of the file in the list
      file - file to be set, not null
    • get

      public Html5File get(int index)
      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