public class FileIOHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
home |
int |
LOADDATABASE |
int |
LOADMEMBRANE |
int |
NEWDATABASE |
int |
SAVEIMAGE |
int |
SAVEMEMBRANE |
int |
SAVEPROTOCOL |
Constructor and Description |
---|
FileIOHandler()
Creates a new XmlIOManager.
|
FileIOHandler(java.awt.Component componentforoptionpane)
Creates a new XmlIOManager.
|
Modifier and Type | Method and Description |
---|---|
static java.io.File |
askForWorkspace() |
java.io.File |
askPDBFileForExternalPreview()
Pops up a Filechooser where the User may select a PDB File.
|
java.io.File |
askPDBFileForRestoring() |
boolean |
authorizeDiscargingOfCurrentMembrane()
Ask if the currently opened Membrane may be discarged.
|
boolean |
authorizeSaving(java.io.File file)
Asks if the given File may be written.
|
static java.lang.String |
getTempJar() |
void |
reportDBLoadingException(java.lang.Exception e)
Report an Exception that occured during loading the DB here and the User
will be informed regarding to the type of exception
|
int |
reportDBSavingException(java.io.IOException e)
Report an Exception occured during saving the DB here to inform the User
|
void |
reportImageSavingException(java.lang.Exception e)
Report an Exception occured during saving here to inform the User
|
void |
reportMembraneGeneratingException(java.lang.Exception e)
Report an Exception occured during Generating the Membrane into a pdb
file
|
void |
reportMembraneLoadingException(java.lang.Exception e)
Report an Exception that occured during loading here and the User will be
informed regarding to the type of exception
|
void |
reportMembraneSavingException(java.lang.Exception e)
Report an Exception occured during saving here to inform the User
|
void |
reportProtocolSavingException(java.lang.Exception e)
Report an Exception occured during saving here to inform the User
|
java.io.File |
requestUsertoChooseFile(int which)
Initializes the specified file Choosing operation.
|
java.io.File |
requestUsertoChooseFileForGeneratingMembrane()
Initializes the specified file Choosing operation for the pdb File the
generated Membran will have.
|
public final int LOADMEMBRANE
public final int SAVEMEMBRANE
public final int SAVEIMAGE
public final int LOADDATABASE
public final int NEWDATABASE
public final int SAVEPROTOCOL
public static java.lang.String home
public FileIOHandler()
public FileIOHandler(java.awt.Component componentforoptionpane)
componentforoptionpane
- public java.io.File requestUsertoChooseFile(int which)
which
- - which operation - see fields in this classpublic java.io.File requestUsertoChooseFileForGeneratingMembrane()
public java.io.File askPDBFileForExternalPreview()
dir
- the file initially selectedpublic boolean authorizeSaving(java.io.File file)
file
- public boolean authorizeDiscargingOfCurrentMembrane()
public void reportMembraneLoadingException(java.lang.Exception e)
e
- public void reportMembraneSavingException(java.lang.Exception e)
e
- public void reportImageSavingException(java.lang.Exception e)
e
- public void reportProtocolSavingException(java.lang.Exception e)
e
- public void reportDBLoadingException(java.lang.Exception e)
e
- public int reportDBSavingException(java.io.IOException e)
e
- public void reportMembraneGeneratingException(java.lang.Exception e)
e
- public static java.io.File askForWorkspace()
public static java.lang.String getTempJar()
public java.io.File askPDBFileForRestoring()