ilog.views.appframe.docview
Class IlvRecentFileList.FileInfo

java.lang.Object
  extended by ilog.views.appframe.docview.IlvRecentFileList.FileInfo
Enclosing class:
IlvRecentFileList

public static class IlvRecentFileList.FileInfo
extends Object

Stores information for a file listed by a recent file list.


Field Summary
protected  IlvRecentFileList recentFileList
          The recent file list that stores this file information.
 
Constructor Summary
IlvRecentFileList.FileInfo(String pathname, IlvRecentFileList recentFileList)
          Constructs a new FileInfo for the specified pathname.
IlvRecentFileList.FileInfo(URL url, IlvRecentFileList recentFileList)
          Constructs a new FileInfo for the specified URL.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

recentFileList

protected IlvRecentFileList recentFileList
The recent file list that stores this file information.

Constructor Detail

IlvRecentFileList.FileInfo

public IlvRecentFileList.FileInfo(String pathname,
                                  IlvRecentFileList recentFileList)
Constructs a new FileInfo for the specified pathname.

Parameters:
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.

IlvRecentFileList.FileInfo

public IlvRecentFileList.FileInfo(URL url,
                                  IlvRecentFileList recentFileList)
Constructs a new FileInfo for the specified URL.

Parameters:
url - The URL of the file to store information from.
Method Detail

getURL

public URL getURL()
Returns the URL of the file that this instance provides information for.

See Also:
getURL()

setURL

public void setURL(URL url)
Sets the URL of the file to store information for.

Parameters:
url - The URL of this file information.
See Also:
setURL(java.net.URL)

setPathname

public void setPathname(String pathname)
Sets the pathname of this file information.

Parameters:
pathname - The new pathname of the file information.
See Also:
getPathname()

getPathname

public String getPathname()
Returns the pathname of the file that this object provides information for.

See Also:
setPathname(java.lang.String)

toString

public String toString()
Returns a string representation of this file to be displayed by a menu item. This method invokes the method IlvRecentFileList.getMenuString(String, boolean).

Overrides:
toString in class Object


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.