multivalent.std.ui

Class History

public class History extends Behavior

Saves last 1000 pages seen. Upon startup, reads list of from disk and salts cache's pages-seen list. On shutdown, saves list, truncating if necessary. During operation, records URL, title, time last seen. On "history:" URL, displays list, grouped by host URL, sorted most recent to least recent. Example of how to fault in outline sections on demand.

Version: $Revision: 1.7 $ $Date: 2003/06/02 05:55:10 $

See Also: OutlineSpan ManualPage

Field Summary
static StringFILENAME
Method Summary
Nodefault(int id, Span span, INode replace)
voidreadHistory()
Read history tuples from USER directory: URL, encoded title, date last read.
booleansemanticEventAfter(SemanticEvent se, String msg)
On "openDocument history:", dynamically generate history page.
booleansemanticEventBefore(SemanticEvent se, String msg)
Write out history at "EXIT", "exitBrowserInstance', and every so many MSG_CLOSEs.
voidwriteHistory()
Write tuples to disk.

Field Detail

FILENAME

public static final String FILENAME

Method Detail

fault

public Node fault(int id, Span span, INode replace)

readHistory

public void readHistory()
Read history tuples from USER directory: URL, encoded title, date last read. Also salts cache's pages-seen list.

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
On "openDocument history:", dynamically generate history page. On "openedDocument DocInfo, add/update record for that URL.

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
Write out history at "EXIT", "exitBrowserInstance', and every so many MSG_CLOSEs.

writeHistory

public void writeHistory()
Write tuples to disk.