com.vividsolutions.jump.workbench.datasource
Class FileDataSourceQueryChooser

java.lang.Object
  extended by com.vividsolutions.jump.workbench.datasource.FileDataSourceQueryChooser
All Implemented Interfaces:
DataSourceQueryChooser
Direct Known Subclasses:
LoadFileDataSourceQueryChooser, SaveFileDataSourceQueryChooser

public abstract class FileDataSourceQueryChooser
extends java.lang.Object
implements DataSourceQueryChooser

UI for picking datasets stored in files. Generates two properties: the filename and the CoordinateSystem.

See Also:
CoordinateSystem

Constructor Summary
FileDataSourceQueryChooser(java.lang.Class dataSourceClass, java.lang.String description, java.lang.String[] extensions)
           
 
Method Summary
 java.awt.Component getComponent()
           
 java.util.Collection getDataSourceQueries()
           
 boolean isInputValid()
          The user has pressed the OK button.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileDataSourceQueryChooser

public FileDataSourceQueryChooser(java.lang.Class dataSourceClass,
                                  java.lang.String description,
                                  java.lang.String[] extensions)
Parameters:
extensions - e.g. txt
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface DataSourceQueryChooser
Overrides:
toString in class java.lang.Object
Returns:
a brief description of the dataset type, suitable for display in a combo box.

isInputValid

public boolean isInputValid()
Description copied from interface: DataSourceQueryChooser
The user has pressed the OK button.

Specified by:
isInputValid in interface DataSourceQueryChooser

getDataSourceQueries

public java.util.Collection getDataSourceQueries()
Specified by:
getDataSourceQueries in interface DataSourceQueryChooser

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface DataSourceQueryChooser

main

public static void main(java.lang.String[] args)