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.
|
void |
clear()
Clears the list of recently opened file names.
|
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 |
remove(URL url)
Removes the passed URL from the 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 remove(URL url)
url
- the URL to be removed.void clear()
void writeOut() throws FileNotFoundException
FileNotFoundException
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.