public class RecentlyOpenedFilesList extends Object implements de.cismet.tools.configuration.Configurable
| Constructor and Description |
|---|
RecentlyOpenedFilesList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Add a file on the first position of the List.
|
void |
configure(org.jdom.Element parent) |
org.jdom.Element |
getConfiguration() |
Collection<File> |
getFileList()
Returns the list with the files, the last opened file is on the first position.
|
int |
getMaxAmount()
Set the maximal amount of files, which are managed by the list.
|
void |
masterConfigure(org.jdom.Element parent) |
void |
saveFilenames()
Save the recently opened files to their own xml-file.
|
void |
setMaxAmount(int maxAmount)
Set the maximal amount of files, which will be managed by the list.
|
public void addFile(File file)
file - added to the first position of the listpublic Collection<File> getFileList()
public void configure(org.jdom.Element parent)
configure in interface de.cismet.tools.configuration.Configurablepublic void masterConfigure(org.jdom.Element parent)
masterConfigure in interface de.cismet.tools.configuration.Configurablepublic org.jdom.Element getConfiguration()
throws de.cismet.tools.configuration.NoWriteError
getConfiguration in interface de.cismet.tools.configuration.Configurablede.cismet.tools.configuration.NoWriteErrorpublic void saveFilenames()
public int getMaxAmount()
public void setMaxAmount(int maxAmount)
maxAmount - maximal amount of filesCopyright © 2012–2026 cismet GmbH. All rights reserved.