public interface RecentlyOpenedTracker
Module: io-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>io-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
add(URL newURL)
Adds "newURL" to the list of recently opened file names and trims the
list if it has exceeded its maximum length.
|
URL |
getMostRecentlyOpenedURL()
Returns the last addition or null if there are no URLs.
|
List<URL> |
getRecentlyOpenedURLs()
Returns the current list of recently opened file names.
|
void |
writeOut()
Writes the list of recently opened files to the file specified by the
constructor argument.
|
URL getMostRecentlyOpenedURL()
List<URL> getRecentlyOpenedURLs()
void add(URL newURL)
newURL
- the URL to add to the list of recently opened file names.void writeOut() throws FileNotFoundException
FileNotFoundException
Copyright 2011 Cytoscape Consortium. All rights reserved.