|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fullspan.pwkeep.PwkApp
public class PwkApp
| Field Summary |
|---|
| Fields inherited from interface com.fullspan.pwkeep.IPwkAppState |
|---|
LOAD_FILE_STATUS_BAD_PASSPHRASE, LOAD_FILE_STATUS_OK, SAVE_FILE_STATUS_FILE_EXISTS, SAVE_FILE_STATUS_NEED_FILENAME, SAVE_FILE_STATUS_NEED_PASSPHRASE, SAVE_FILE_STATUS_OK |
| Constructor Summary | |
|---|---|
PwkApp()
|
|
| Method Summary | |
|---|---|
void |
createGui(java.lang.Object splashScreen)
|
void |
exit()
Exits the application. |
java.io.File |
getFile()
|
boolean |
getIsFileModified()
|
boolean |
getIsPassphraseSet()
|
com.fullspan.util.swing.TreeNodeListModel |
getListModel()
|
PwkModel |
getModel()
|
PwkTreeModel |
getTreeModel()
|
int |
loadFile(java.io.File file,
java.lang.String passphrase)
Loads a file. |
void |
newFile()
|
int |
saveFile()
Saves the current file. |
int |
saveFileAs(java.io.File file,
boolean okToOverwrite)
Saves the current file under a new name (or for the first time) |
void |
setIsFileModified(boolean isFileModified)
The user interface should call this with true when the
file has been modified |
void |
setPassphrase(java.lang.String passphrase)
Set the passphrase for the current file. |
boolean |
validatePassphrase(java.lang.String passphrase)
Validate the passphrase for the current file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PwkApp()
| Method Detail |
|---|
public void exit()
IPwkAppStateThis method saves the current option settings before exiting.
exit in interface IPwkAppStatepublic java.io.File getFile()
getFile in interface IPwkAppStatepublic boolean getIsFileModified()
getIsFileModified in interface IPwkAppStatepublic boolean getIsPassphraseSet()
getIsPassphraseSet in interface IPwkAppStatepublic com.fullspan.util.swing.TreeNodeListModel getListModel()
getListModel in interface IPwkAppStatepublic PwkModel getModel()
getModel in interface IPwkAppStatepublic PwkTreeModel getTreeModel()
getTreeModel in interface IPwkAppState
public int loadFile(java.io.File file,
java.lang.String passphrase)
throws PwkException
IPwkAppState
loadFile in interface IPwkAppStatefile - the file to loadpassphrase - the user-supplied passphrase for the file
PwkExceptionpublic void newFile()
newFile in interface IPwkAppState
public int saveFile()
throws PwkException
IPwkAppState
saveFile in interface IPwkAppStatePwkException
public int saveFileAs(java.io.File file,
boolean okToOverwrite)
throws PwkException
IPwkAppState
saveFileAs in interface IPwkAppStateokToOverwrite - true if it's OK to overwrite the file if it
already exists; false to return SAVE_FILE_STATUS_FILE_EXISTS if
it already exists
PwkExceptionpublic void setIsFileModified(boolean isFileModified)
IPwkAppStatetrue when the
file has been modified
setIsFileModified in interface IPwkAppStateisFileModified - true if the file has been modified (if the user
has made a change)public void setPassphrase(java.lang.String passphrase)
IPwkAppState
setPassphrase in interface IPwkAppStatepublic boolean validatePassphrase(java.lang.String passphrase)
IPwkAppState
validatePassphrase in interface IPwkAppState
public void createGui(java.lang.Object splashScreen)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||