Class FileDataSourceQueryChooser
java.lang.Object
com.vividsolutions.jump.workbench.datasource.FileDataSourceQueryChooser
- All Implemented Interfaces:
DataSourceQueryChooser
- Direct Known Subclasses:
LoadFileDataSourceQueryChooser, SaveFileDataSourceQueryChooser
UI for picking datasets stored in files. Generates two properties: the filename
and the CoordinateSystem.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Constructor Summary
ConstructorsConstructorDescriptionFileDataSourceQueryChooser(Class dataSourceClass, String description, String[] extensions) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFileFilters(JFileChooser chooser) String[]protected abstract FileDataSourceQueryChooser.FileChooserPanelprotected FileFilterabstract File[]override in implementations to postprocess the selected filenames eg. add extensions for saving or such should be used in isInputValid(), getDataSourceQueries() ...protected Componentprotected ComponentbooleanThe user has pressed the OK button.static voidprotected Collection<DataSourceQuery> toDataSourceQueries(File file) protected DataSourceQuerytoDataSourceQuery(File file) toProperties(File file) toString()
-
Constructor Details
-
FileDataSourceQueryChooser
-
-
Method Details
-
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
- Specified by:
getDataSourceQueriesin interfaceDataSourceQueryChooser
-
getSelectedFiles
override in implementations to postprocess the selected filenames eg. add extensions for saving or such should be used in isInputValid(), getDataSourceQueries() ...- Returns:
- array of file objects
-
toDataSourceQueries
-
getFileChooserPanel
-
getComponent
- Specified by:
getComponentin interfaceDataSourceQueryChooser
-
addFileFilters
-
toDataSourceQuery
-
toProperties
-
main
-
getFileFilter
-
getSouthComponent1
-
getSouthComponent2
-
getExtensions
-
getDescription
-
getDataSourceClass
-