com.mebigfatguy.polycasso
Class FileSelector

java.lang.Object
  extended by com.mebigfatguy.polycasso.FileSelector

public class FileSelector
extends java.lang.Object

a class for picking a save as file name given the specified file type


Constructor Summary
FileSelector(FileType type)
          constructs a selector of the given type
 
Method Summary
 java.lang.String getFileName()
          shows a dialog to pick a save target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSelector

public FileSelector(FileType type)
constructs a selector of the given type

Parameters:
type - the type of save operation desired
Method Detail

getFileName

public java.lang.String getFileName()
shows a dialog to pick a save target. Ensures that the proper extension is given for the file

Returns:
the path of the selected file or null if not selected


Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.