Class FileDataSourceQueryChooser
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.datasource.FileDataSourceQueryChooser
-
- All Implemented Interfaces:
DataSourceQueryChooser
- Direct Known Subclasses:
LoadFileDataSourceQueryChooser
,SaveFileDataSourceQueryChooser
public abstract class FileDataSourceQueryChooser extends Object implements DataSourceQueryChooser
UI for picking datasets stored in files. Generates two properties: the filename and the CoordinateSystem.- See Also:
CoordinateSystem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
FileDataSourceQueryChooser.FileChooserPanel
-
Constructor Summary
Constructors Constructor Description FileDataSourceQueryChooser(Class dataSourceClass, String description, String[] extensions)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addFileFilters(JFileChooser chooser)
Component
getComponent()
Collection
getDataSourceQueries()
protected abstract FileDataSourceQueryChooser.FileChooserPanel
getFileChooserPanel()
protected Component
getSouthComponent1()
protected Component
getSouthComponent2()
boolean
isInputValid()
The user has pressed the OK button.static void
main(String[] args)
protected Collection
toDataSourceQueries(File file)
protected DataSourceQuery
toDataSourceQuery(File file)
protected Map
toProperties(File file)
String
toString()
-
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in interfaceDataSourceQueryChooser
- Overrides:
toString
in classObject
- 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 interfaceDataSourceQueryChooser
-
getDataSourceQueries
public Collection getDataSourceQueries()
- Specified by:
getDataSourceQueries
in interfaceDataSourceQueryChooser
-
toDataSourceQueries
protected Collection toDataSourceQueries(File file)
-
getFileChooserPanel
protected abstract FileDataSourceQueryChooser.FileChooserPanel getFileChooserPanel()
-
getComponent
public Component getComponent()
- Specified by:
getComponent
in interfaceDataSourceQueryChooser
-
addFileFilters
protected void addFileFilters(JFileChooser chooser)
-
toDataSourceQuery
protected DataSourceQuery toDataSourceQuery(File file)
-
main
public static void main(String[] args)
-
getSouthComponent1
protected Component getSouthComponent1()
-
getSouthComponent2
protected Component getSouthComponent2()
-
-