public abstract class FileDataSourceQueryChooser extends java.lang.Object implements DataSourceQueryChooser
CoordinateSystem
Modifier and Type | Class and Description |
---|---|
protected static class |
FileDataSourceQueryChooser.FileChooserPanel |
Constructor and Description |
---|
FileDataSourceQueryChooser(java.lang.Class dataSourceClass,
java.lang.String description,
java.lang.String[] extensions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFileFilters(javax.swing.JFileChooser chooser) |
java.awt.Component |
getComponent() |
java.lang.Class |
getDataSourceClass() |
java.util.Collection |
getDataSourceQueries() |
java.lang.String |
getDescription() |
java.lang.String[] |
getExtensions() |
protected abstract FileDataSourceQueryChooser.FileChooserPanel |
getFileChooserPanel() |
javax.swing.filechooser.FileFilter |
getFileFilter() |
protected java.awt.Component |
getSouthComponent1() |
protected java.awt.Component |
getSouthComponent2() |
boolean |
isInputValid()
The user has pressed the OK button.
|
static void |
main(java.lang.String[] args) |
protected java.util.Collection |
toDataSourceQueries(java.io.File file) |
DataSourceQuery |
toDataSourceQuery(java.io.File file) |
protected java.util.Map |
toProperties(java.io.File file) |
java.lang.String |
toString() |
public FileDataSourceQueryChooser(java.lang.Class dataSourceClass, java.lang.String description, java.lang.String[] extensions)
extensions
- e.g. txtpublic java.lang.String toString()
toString
in interface DataSourceQueryChooser
toString
in class java.lang.Object
public boolean isInputValid()
DataSourceQueryChooser
isInputValid
in interface DataSourceQueryChooser
public java.util.Collection getDataSourceQueries()
getDataSourceQueries
in interface DataSourceQueryChooser
protected java.util.Collection toDataSourceQueries(java.io.File file)
protected abstract FileDataSourceQueryChooser.FileChooserPanel getFileChooserPanel()
public java.awt.Component getComponent()
getComponent
in interface DataSourceQueryChooser
protected void addFileFilters(javax.swing.JFileChooser chooser)
public DataSourceQuery toDataSourceQuery(java.io.File file)
protected java.util.Map toProperties(java.io.File file)
public static void main(java.lang.String[] args)
public javax.swing.filechooser.FileFilter getFileFilter()
protected java.awt.Component getSouthComponent1()
protected java.awt.Component getSouthComponent2()
public java.lang.String[] getExtensions()
public java.lang.String getDescription()
public java.lang.Class getDataSourceClass()