public interface UIFace extends Resetable
reset() method.| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts a currently running operation (find, replace, ...).
|
void |
addProgressListener(ProgressListener prol)
Adds a ProgressListener that will receive notifications about find and
replace operations (but not about renaming operations).
|
java.io.File |
extract(ExtractForm criteria,
java.util.List<TargetFile> fileList)
Extracts data from the file list as defined by the criteria form and writes the result to some temporary file.
|
void |
filter(java.util.List<TargetFile> fileList,
FindFilter criteria,
boolean removeMismatch)
Uses the content pattern (and associated flags) supplied with the "criteria" to filter the specified file list.
|
java.util.List<TargetFile> |
findFiles(FindFilter criteria)
Uses the "criteria" parameter to configure a
FileSelector
and returns the list of found files. |
void |
removeProgressListener(ProgressListener prol)
Removes a previously set ProgressListener
|
java.util.List<TargetFile> |
rename(java.util.List<TargetFile> fileList,
OverwriteFileCallback callback)
Cycles through the file list and renames each file to the name specified in
the "newName" property, unless the file is not selected or "newName" is empty.
|
void |
replace(ReplacementDescriptor criteria,
java.util.List<TargetFile> fileList)
Uses the "criteria" parameter to configure a
FileMatcher and
applies the defined relacement algorithm to all files
in the list that are marked as "selected" (the default). |
void |
reset()
Aborts any currently running search and clears the history.
|
void |
undoLastReplace()
Undo command for the last replace operation.
|
java.util.List<TargetFile> findFiles(FindFilter criteria)
FileSelector
and returns the list of found files.criteria - search criteriavoid replace(ReplacementDescriptor criteria, java.util.List<TargetFile> fileList)
FileMatcher and
applies the defined relacement algorithm to all files
in the list that are marked as "selected" (the default).criteria - defining a regular expression and a replacement patternfileList - list of files to operate onsvoid undoLastReplace()
java.util.List<TargetFile> rename(java.util.List<TargetFile> fileList, OverwriteFileCallback callback)
fileList - files to be renamedcallback - for user feedbackvoid filter(java.util.List<TargetFile> fileList, FindFilter criteria, boolean removeMismatch)
fileList - list of files. Only selected files are taken into account.criteria - filter criteriaremoveMismatch - true if mismatches should be removed, false if they should only be deselected.java.io.File extract(ExtractForm criteria, java.util.List<TargetFile> fileList)
criteria - defines the data to be extracted and the output formatfileList - list of files to be searchedvoid abort()
void reset()
void addProgressListener(ProgressListener prol)
prol - ProgressListener to be added.void removeProgressListener(ProgressListener prol)
prol - ProgressListener to be removed