Class LoadFileDataSourceQueryChooser
java.lang.Object
com.vividsolutions.jump.workbench.datasource.FileDataSourceQueryChooser
com.vividsolutions.jump.workbench.datasource.LoadFileDataSourceQueryChooser
- All Implemented Interfaces:
DataSourceQueryChooser
UI for picking a file-based dataset to load.
-
Nested Class Summary
Nested classes/interfaces inherited from class FileDataSourceQueryChooser
FileDataSourceQueryChooser.FileChooserPanel -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadFileDataSourceQueryChooser(Class dataSourceClass, String description, String[] extensions, WorkbenchContext context) -
Method Summary
Modifier and TypeMethodDescriptionFile[]selected files get the default (first) file extension appended if they do not exist as named (user might have entered just the filename w/o ext into the filechooser) but exist with the extension at the given locationMethods inherited from class FileDataSourceQueryChooser
addFileFilters, getComponent, getDataSourceClass, getDescription, getExtensions, getFileFilter, getSouthComponent1, getSouthComponent2, isInputValid, main, toDataSourceQueries, toDataSourceQuery, toProperties, toString
-
Field Details
-
FILE_CHOOSER_DIRECTORY_KEY
-
FILE_CHOOSER_COORDINATE_SYSTEM_KEY
-
FILE_CHOOSER_PANEL_KEY
-
FILE_CHOOSER_KEY
-
-
Constructor Details
-
LoadFileDataSourceQueryChooser
public LoadFileDataSourceQueryChooser(Class dataSourceClass, String description, String[] extensions, WorkbenchContext context) - Parameters:
extensions- e.g. txt
-
-
Method Details
-
getFileChooserPanel
- Specified by:
getFileChooserPanelin classFileDataSourceQueryChooser
-
getDataSourceQueries
- Specified by:
getDataSourceQueriesin interfaceDataSourceQueryChooser- Overrides:
getDataSourceQueriesin classFileDataSourceQueryChooser
-
getSelectedFiles
selected files get the default (first) file extension appended if they do not exist as named (user might have entered just the filename w/o ext into the filechooser) but exist with the extension at the given location- Specified by:
getSelectedFilesin classFileDataSourceQueryChooser- Returns:
- array of file objects
-