org.emboss.jemboss.gui.filetree
Class FileSave

java.lang.Object
  extended byorg.emboss.jemboss.gui.filetree.FileSave

public class FileSave
extends java.lang.Object

Saving files locally


Field Summary
private  boolean canDo
          true if it is possible to write to this file
private  java.io.File f
          file to save
private  boolean fExists
          true if the file exists
private  boolean fileWritten
          true if the file has been written
 
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
file to save


fileWritten

private boolean fileWritten
true if the file has been written


fExists

private boolean fExists
true if the file exists


canDo

private boolean canDo
true if it is possible to write to this file

Constructor Detail

FileSave

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

Parameters:
f - file to save to
Method Detail

fileSaving

public void fileSaving(java.lang.Object file)
Parameters:
file - 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 the file was written

fileExists

public boolean fileExists()
Returns:
true if the file already exists