18 package org.turro.zkoss.input;
21 import java.io.FileFilter;
22 import java.util.Arrays;
23 import org.turro.string.Strings;
31 private String filter;
33 private boolean exact;
66 File files[] = dir.listFiles(
new FileFilter() {
68 public boolean accept(File pathname) {
69 return pathname.isFile() && (exact ? pathname.getName().matches(filter) :
70 Strings.finds(pathname.getName(), filter));
73 if(files !=
null && files.length > 0)
setCollection(Arrays.asList(files));