|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jsxe.BufferHistory
Maintains the files that have been used recently and their properties. The recent.xml file in the .jsXe directory in the user's home directory holds properties and info about how the user was using the document when he or she closed it last. This way the user can resume work on a file fairly seamlessly even though they closed the file previously or exited jsXe entirely
Nested Class Summary | |
static class |
BufferHistory.BufferHistoryEntry
Represents an entry in the buffer history. |
Constructor Summary | |
BufferHistory()
Creates a new empty buffer history |
Method Summary | |
ArrayList |
getEntries()
Gets a list of all entries in the buffer history |
BufferHistory.BufferHistoryEntry |
getEntry(String path)
Gets an entry in the buffer history for the path given. |
void |
load(File file)
Loads the buffer history from a file on disk. |
void |
save(File file)
Saves the buffer history to a file on disk |
void |
setEntry(BufferHistory.BufferHistoryEntry entry)
Adds a new entry to the buffer history. |
void |
setEntry(DocumentBuffer buffer,
String viewName)
Adds or updates an entry in the buffer history for an open file |
void |
setEntry(String path,
String viewName,
Properties properties)
Adds or updates an entry in the buffer history for the path given |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BufferHistory()
Method Detail |
public BufferHistory.BufferHistoryEntry getEntry(String path)
path
- the path of the file in the buffer history
public ArrayList getEntries()
public void setEntry(DocumentBuffer buffer, String viewName)
buffer
- the DocumentBuffer to update the history forviewName
- the name of the document view that was being usedpublic void setEntry(String path, String viewName, Properties properties)
viewName
- the name of the document view that was being usedproperties
- the properties to save to the historypublic void setEntry(BufferHistory.BufferHistoryEntry entry)
entry
- the BufferHistoryEntry to set to the historypublic void load(File file) throws IOException, SAXException, ParserConfigurationException
file
- the file from which to load the buffer history
IOException
SAXException
ParserConfigurationException
public void save(File file) throws IOException
file
- the file to save the buffer history to
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |