net.rmi.rmiSynth.lex
Class FileSaver

java.lang.Object
  extended by net.rmi.rmiSynth.lex.FileSaver

public class FileSaver
extends java.lang.Object


Constructor Summary
FileSaver()
           
 
Method Summary
 void createFile(java.lang.String source, java.lang.String fileName)
          Method createFile Promts user for a filename and saves the file
 java.lang.String getSaveFileName(java.lang.String prompt, java.lang.String fileName)
          Method getSaveFileName Shows Save File dialog
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSaver

public FileSaver()
Method Detail

createFile

public void createFile(java.lang.String source,
                       java.lang.String fileName)
Method createFile Promts user for a filename and saves the file

Parameters:
source - Future file content
fileName - Name of the file

getSaveFileName

public java.lang.String getSaveFileName(java.lang.String prompt,
                                        java.lang.String fileName)
Method getSaveFileName Shows Save File dialog

Parameters:
prompt - Prompt to showAndRegister in title bar
fileName - Name of the file
Returns:
fn File name that user typed in