|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.RecentFiles
Remembers recently opened filenames.
| Constructor Summary | |
RecentFiles()
Creates a new RecentFiles object. |
|
| Method Summary | |
void |
add(String filename)
Adds the given filename to the list of remembered filenames. |
int |
count()
Returns the number of items which are currently saved in the list of recently opened filenames. |
protected void |
expire()
|
protected org.bs.mdi.RecentFiles.RecentFileEntry |
findEntry(String filename)
|
long |
getExpiryTime()
Returns the expiry time of all entries, in milliseconds. |
String[] |
getList()
Returns the list of recently opened filenames. |
int |
getMaxEntries()
Returns the maximum number of filenames returned by getList(). |
protected void |
load()
|
void |
remove(String filename)
Removes the given filename from the list of recently opened filenames. |
protected void |
save()
|
void |
setExpiryTime(long time)
Sets the "time to live" of an recent filename entry. |
void |
setMaxEntries(int maxEntries)
Sets the maximum number of filenames returned by getList(). |
protected void |
sort()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RecentFiles()
| Method Detail |
public void add(String filename)
filename - the filename to be rememberedpublic String[] getList()
public int count()
public void remove(String filename)
filename - the filename to be removedpublic long getExpiryTime()
public void setExpiryTime(long time)
time - the expiry time in millisecondspublic int getMaxEntries()
getList().
getList().public void setMaxEntries(int maxEntries)
getList().
maxEntries - the new maximum number of filenamesprotected void sort()
protected void load()
protected void save()
protected void expire()
protected org.bs.mdi.RecentFiles.RecentFileEntry findEntry(String filename)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||