- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file FileResults.java.
◆ FileResults()
org.turro.file.zul.control.FileResults.FileResults |
( |
| ) |
|
◆ getFileList()
Collection<File> org.turro.file.zul.control.FileResults.getFileList |
( |
File |
folder | ) |
|
Definition at line 132 of file FileResults.java.
133 Set<File> files =
new TreeSet<>();
134 if(folder.exists()) {
135 for(File file : folder.listFiles()) {
136 if(!file.isHidden()) {
137 if(file.isDirectory() ||
matches(file)) files.add(file);
boolean matches(File file)
◆ getFiles()
Collection<File> org.turro.file.zul.control.FileResults.getFiles |
( |
File |
folder | ) |
|
Definition at line 120 of file FileResults.java.
121 Set<File> files =
new TreeSet<>();
122 if(folder.exists()) {
123 for(File file : folder.listFiles()) {
124 if(file.isFile() && !file.isHidden()) {
125 if(
matches(file)) files.add(file);
◆ getFolders()
Collection<String> org.turro.file.zul.control.FileResults.getFolders |
( |
File |
folder | ) |
|
Definition at line 108 of file FileResults.java.
109 Set<String> subdirs =
new TreeSet<>();
110 if(folder.exists()) {
111 for(File file : folder.listFiles()) {
112 if(file.isDirectory() && !file.isHidden()) {
113 subdirs.add(file.getName());
◆ getSearchValue()
String org.turro.file.zul.control.FileResults.getSearchValue |
( |
| ) |
|
◆ isPartial()
boolean org.turro.file.zul.control.FileResults.isPartial |
( |
| ) |
|
◆ isPath()
boolean org.turro.file.zul.control.FileResults.isPath |
( |
| ) |
|
◆ isRegexp()
boolean org.turro.file.zul.control.FileResults.isRegexp |
( |
| ) |
|
◆ matches()
boolean org.turro.file.zul.control.FileResults.matches |
( |
File |
file | ) |
|
Definition at line 75 of file FileResults.java.
76 if(Strings.isBlank(searchValue))
return false;
80 return file.getAbsolutePath().matches(
".*" + searchValue +
".*");
82 return file.getAbsolutePath().matches(searchValue);
86 return file.getName().matches(
".*" + searchValue +
".*");
88 return file.getName().matches(searchValue);
94 return file.getAbsolutePath().matches(Strings.convertToRegEx(
"*" + searchValue +
"*"));
96 return file.getAbsolutePath().matches(Strings.convertToRegEx(searchValue));
100 return file.getName().matches(Strings.convertToRegEx(
"*" + searchValue +
"*"));
102 return file.getName().matches(Strings.convertToRegEx(searchValue));
◆ setPartial()
void org.turro.file.zul.control.FileResults.setPartial |
( |
boolean |
partial | ) |
|
◆ setPath()
void org.turro.file.zul.control.FileResults.setPath |
( |
boolean |
path | ) |
|
◆ setRegexp()
void org.turro.file.zul.control.FileResults.setRegexp |
( |
boolean |
regexp | ) |
|
◆ setSearchValue()
void org.turro.file.zul.control.FileResults.setSearchValue |
( |
String |
searchValue | ) |
|
The documentation for this class was generated from the following file: