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 classFileDataSourceQueryChooser.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 voidaddFileFilters(JFileChooser chooser)ComponentgetComponent()CollectiongetDataSourceQueries()protected abstract FileDataSourceQueryChooser.FileChooserPanelgetFileChooserPanel()protected ComponentgetSouthComponent1()protected ComponentgetSouthComponent2()booleanisInputValid()The user has pressed the OK button.static voidmain(String[] args)protected CollectiontoDataSourceQueries(File file)protected DataSourceQuerytoDataSourceQuery(File file)protected MaptoProperties(File file)StringtoString()
-
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin interfaceDataSourceQueryChooser- Overrides:
toStringin classObject- Returns:
- a brief description of the dataset type, suitable for display in a combo box.
-
isInputValid
public boolean isInputValid()
Description copied from interface:DataSourceQueryChooserThe user has pressed the OK button.- Specified by:
isInputValidin interfaceDataSourceQueryChooser
-
getDataSourceQueries
public Collection getDataSourceQueries()
- Specified by:
getDataSourceQueriesin interfaceDataSourceQueryChooser
-
toDataSourceQueries
protected Collection toDataSourceQueries(File file)
-
getFileChooserPanel
protected abstract FileDataSourceQueryChooser.FileChooserPanel getFileChooserPanel()
-
getComponent
public Component getComponent()
- Specified by:
getComponentin 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()
-
-