Package org.emrick.project
Class SelectFileGUI
java.lang.Object
org.emrick.project.SelectFileGUI
- All Implemented Interfaces:
ActionListener,EventListener
This class constructs a Swing GUI window for importing Coordinates PDF and Pyware Archive file (.3dz)
when starting new projects. Coordinates PDF provides necessary performer data, and Pyware Archive (.3dz)
provides additional Pyware drill components (e.g., floorCover, ground, surface, audio).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JButtonprivate Fileprivate Fileprivate final JDialogprivate final ImportArchiveprivate final JButtonprivate final ImportListenerprivate static final booleanprivate final JButtonprivate final JLabelprivate final JButtonprivate final JLabelprivate final JButtonprivate final JLabel -
Constructor Summary
ConstructorsConstructorDescriptionSelectFileGUI(JFrame parent, ImportListener importListener) Prepare ImportArchive service object. -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidautoImport(String coordsFilePath, String archiveFilePath) private voidgetExtensionByStringHandling(String filename) Obtain the file extension programmatically in Java(package private) static JFileChoosergetFileChooser(String x, String suffix)
-
Field Details
-
IS_DEBUG
private static final boolean IS_DEBUG- See Also:
-
importListener
-
dialogWindow
-
ulCsvButton
-
ulCsvFilename
-
ulCoordsButton
-
ulArchiveButton
-
ulCoordsFilename
-
ulArchiveFilename
-
cancelButton
-
importButton
-
importArchive
-
coordsFile
-
archiveFiles
-
csvFile
-
-
Constructor Details
-
SelectFileGUI
Prepare ImportArchive service object.- Parameters:
importListener- Passed down from a class that overrides ImportListener methods. Provides callback functionality (e.g., to repaint field after importing floorCover or surface images).
-
-
Method Details
-
autoImport
-
getExtensionByStringHandling
Obtain the file extension programmatically in Java- Parameters:
filename- - We want the extension of this file- Returns:
- A string representing the extension, if the extension exists
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
copyFiles
-
getFileChooser
-