|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.edit.DirtyDocumentIndicator
public class DirtyDocumentIndicator
Listens for editing by the user to indicate that the document needs saving before it's closed. Editing state is reset anytime a user saves the document. Implements VetoableShutdownListener to be used by GUIManager when a user attempts to quit.
| Method Summary | |
|---|---|
void |
charChanged(CharChangeEvent e)
charChanged comes from user edit, so set edited to true, BUT... |
void |
fileLoaded(java.io.File f)
|
void |
fileSaved(java.io.File f)
|
static DirtyDocumentIndicator |
inst()
|
boolean |
isDocumentDirty()
Currently this returns true if there has been any non-add(add blank row) edits However if one does an edit and then does undo this will still return true. |
void |
newCharList(CharListChangeEvent e)
|
boolean |
okToClearData()
|
boolean |
willShutdown()
from VetoableShutdownListener interface, this method is called from plus/obo/bbop framework on exit, if document is dirty it calls up user dialog to query about saving changes and cancelling exit, if false is returned(cancel) then shutdown is cancelled/vetoed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DirtyDocumentIndicator inst()
public void charChanged(CharChangeEvent e)
charChanged in interface CharChangeListenerpublic void newCharList(CharListChangeEvent e)
newCharList in interface CharListChangeListenerpublic void fileLoaded(java.io.File f)
fileLoaded in interface LoadSaveListenerpublic void fileSaved(java.io.File f)
fileSaved in interface LoadSaveListenerpublic boolean isDocumentDirty()
public boolean willShutdown()
willShutdown in interface org.bbop.framework.VetoableShutdownListenerpublic boolean okToClearData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||