|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.tools.cvd.RecentFilesList
public class RecentFilesList
List of recently used files.
Provides functionality to keep a list of a certain max size. New files are added to the top. When a file is added that is already in the list, it is shuffled to the top. When the maximum list size has been reached, files start dropping off the end.
| Constructor Summary | |
|---|---|
RecentFilesList(int maxSize)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFile(java.io.File file)
Add a file at the beginning. |
void |
appendFile(java.io.File file)
Append a file at the end of the list (useful for initialization). |
java.util.List<java.io.File> |
getFileList()
Get the internal list of files, in the proper order (most recent first). |
java.util.List<java.lang.String> |
toStringList()
Return the file list as a list of strings for persistence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecentFilesList(int maxSize)
maxSize - The maximum size to which the list can grow.| Method Detail |
|---|
public java.util.List<java.io.File> getFileList()
public void appendFile(java.io.File file)
file - The file to be added.public void addFile(java.io.File file)
file is already in the list, move it to the front.
file - The file to be added.public java.util.List<java.lang.String> toStringList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||