public List<String> getNames() {
   final List<String> names = Lists.newArrayList();
   for (ListGridRecord record : filesGrid.getRecords()) {
     names.add(record.getAttributeAsString("name"));
   }
   return names;
 }
 public int getNumSelectedFiles() {
   final ListGridRecord[] records = filesGrid.getRecords();
   return records == null ? 0 : records.length;
 }