|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.apploader.prefs.FileHistoryManager
Manages the file history list.
Field Summary | |
static java.util.Comparator |
SORT_XSDATE_TIME
Sorts RDF nodes based on their mru:viewedOn date. |
Constructor Summary | |
FileHistoryManager()
|
Method Summary | |
void |
clean()
Removes all older view entries from the file history. |
com.hp.hpl.jena.rdf.model.Resource |
getActionListenerResource()
The resource representing the 'open file' bean; this is used to set up the recently used menu items. |
static java.lang.String |
getFileTitle(java.net.URI f)
Gets the user-friendly title of the given URI. |
int |
getMRULength()
Get the number of items to keep in the MRU list. |
com.hp.hpl.jena.rdf.model.Resource |
getParentResource()
Gets the resource representing the item (usually an lal:menu or an lal:group) where the MRU menu is to be attached. |
PrefsManager |
getPrefs()
Gets the apploader preference manager. |
void |
resetMostRecentlyViewedList()
Saves the history list back to the user preference space. |
void |
setActionListenerResource(com.hp.hpl.jena.rdf.model.Resource resource)
Sets the action that will be invoked when a user clicks on an item in the MRU menu. |
void |
setMRULength(int i)
Sets the number of items to save in the MRU list. |
void |
setParentResource(com.hp.hpl.jena.rdf.model.Resource resource)
Sets where in the menu the list should be attached. |
void |
setPrefs(PrefsManager manager)
Sets the preference manager. |
void |
touch(java.net.URI uri)
Update the file history to indicate that the file at the given URI was visited now. |
void |
touchFile(java.lang.String fname)
Touches the file at the given file path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Comparator SORT_XSDATE_TIME
Constructor Detail |
public FileHistoryManager()
Method Detail |
public void clean()
public static java.lang.String getFileTitle(java.net.URI f)
f
- the URI
public void touch(java.net.URI uri)
uri
- the uri to put a new 'viewed date' onpublic void touchFile(java.lang.String fname)
fname
- the file to mark as touchedpublic void resetMostRecentlyViewedList()
public PrefsManager getPrefs()
public void setPrefs(PrefsManager manager)
manager
- the preference managerpublic int getMRULength()
public void setMRULength(int i)
i
- the number of items to keep in the MRU listpublic com.hp.hpl.jena.rdf.model.Resource getActionListenerResource()
public com.hp.hpl.jena.rdf.model.Resource getParentResource()
public void setActionListenerResource(com.hp.hpl.jena.rdf.model.Resource resource)
resource
- the file open bean's uripublic void setParentResource(com.hp.hpl.jena.rdf.model.Resource resource)
resource
- the menu, group, or (don't you think about it)
root pane container to attach the menu to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |