public static class IlvRecentFileList.FileInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IlvRecentFileList |
recentFileList
The recent file list that stores this file information.
|
| Constructor and Description |
|---|
FileInfo(String pathname,
IlvRecentFileList recentFileList)
Constructs a new
FileInfo for the specified pathname. |
FileInfo(URL url,
IlvRecentFileList recentFileList)
Constructs a new
FileInfo for the specified URL. |
| Modifier and Type | Method and Description |
|---|---|
String |
getPathname()
Returns the pathname of the file that this object provides information for.
|
URL |
getURL()
Returns the URL of the file that this instance provides information for.
|
void |
setPathname(String pathname)
Sets the pathname of this file information.
|
void |
setURL(URL url)
Sets the URL of the file to store information for.
|
String |
toString()
Returns a string representation of this file to be displayed by a menu
item.
|
protected IlvRecentFileList recentFileList
public FileInfo(String pathname, IlvRecentFileList recentFileList)
FileInfo for the specified pathname.pathname - The pathname of the file to store information from.
If the specified recent file list is not used for storing pathnames, this
parameter may represent a key name that will be interpreted by the
user of the file list.public FileInfo(URL url, IlvRecentFileList recentFileList)
FileInfo for the specified URL.url - The URL of the file to store information from.public URL getURL()
getURL()public void setURL(URL url)
url - The URL of this file information.setURL(java.net.URL)public void setPathname(String pathname)
pathname - The new pathname of the file information.getPathname()public String getPathname()
setPathname(java.lang.String)public String toString()
IlvRecentFileList.getMenuString(String, boolean).© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.