org.deegree.tools.crs.georeferencing.communication
Class FileChooser

java.lang.Object
  extended by org.deegree.tools.crs.georeferencing.communication.FileChooser

public class FileChooser
extends Object

Provides a convenient procedure to build a fileChooser dialog.

Version:
$Revision: 28927 $, $Date: 2010-12-21 17:10:46 +0100 (Tue, 21 Dec 2010) $
Author:
Steffen Thomas, last edited by: $Author: aschmitz $

Field Summary
static String LAST_EXTENSION
           
static String OPEN_KEY
           
static String SAVE_KEY
           
 
Constructor Summary
FileChooser(List<Pair<List<String>,String>> supportedFiles, Component parent, boolean open)
           
 
Method Summary
 String getOpenPath()
           
 File getSaveFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_KEY

public static final String OPEN_KEY
See Also:
Constant Field Values

SAVE_KEY

public static final String SAVE_KEY
See Also:
Constant Field Values

LAST_EXTENSION

public static final String LAST_EXTENSION
See Also:
Constant Field Values
Constructor Detail

FileChooser

public FileChooser(List<Pair<List<String>,String>> supportedFiles,
                   Component parent,
                   boolean open)
Parameters:
supportedFiles - an array with extensions and description.
Method Detail

getOpenPath

public String getOpenPath()
Returns:
the selected file path, could be null.

getSaveFile

public File getSaveFile()
Returns:
the selected file, could be null.


Copyright © 2011. All Rights Reserved.