Example usage for com.google.gwt.file.client FileList create

List of usage examples for com.google.gwt.file.client FileList create

Introduction

In this page you can find the example usage for com.google.gwt.file.client FileList create.

Prototype

public static FileList create(Element e) 

Source Link

Usage

From source file:org.rest.client.ui.html5.HTML5FileUpload.java

License:Apache License

/**
 * Get filelist javascript object.//ww w. j  a v a 2s . c o m
 * 
 * @return list of files OR <b>null</b> on empty or not exists
 */
public FileList getFiles() {
    FileList list = FileList.create(getElement());
    if (list.size() == 0) {
        return null;
    }
    return list;
}