org.emboss.jemboss.gui.filetree
Class FileSave

java.lang.Object
  |
  +--org.emboss.jemboss.gui.filetree.FileSave

public class FileSave
extends java.lang.Object


Field Summary
private  boolean canDo
           
private  java.io.File f
           
private  boolean fExists
           
private  boolean fileWritten
           
 
Constructor Summary
FileSave(java.io.File f)
          Check if we can/want to save file to disk.
 
Method Summary
 boolean doWrite()
           
 boolean fileExists()
           
 void fileSaving(java.lang.Object file)
           
 boolean writeOK()
          Whether the fileSaving() operation was successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f

private java.io.File f

fileWritten

private boolean fileWritten

fExists

private boolean fExists

canDo

private boolean canDo
Constructor Detail

FileSave

public FileSave(java.io.File f)
Check if we can/want to save file to disk.

Parameters:
f - the File to save to
Method Detail

fileSaving

public void fileSaving(java.lang.Object file)
Parameters:
file - An Object with the file contents

doWrite

public boolean doWrite()
Returns:
true if we can write and want too

writeOK

public boolean writeOK()
Whether the fileSaving() operation was successful

Returns:
true if we wrote the file, otherwise false

fileExists

public boolean fileExists()