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 JButton
private File
private File
private final JDialog
private final ImportArchive
private final JButton
private final ImportListener
private static final boolean
private final JButton
private final JLabel
private final JButton
private final JLabel
private final JButton
private final JLabel
-
Constructor Summary
ConstructorsConstructorDescriptionSelectFileGUI
(JFrame parent, ImportListener importListener) Prepare ImportArchive service object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
autoImport
(String coordsFilePath, String archiveFilePath) private void
getExtensionByStringHandling
(String filename) Obtain the file extension programmatically in Java(package private) static JFileChooser
getFileChooser
(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:
actionPerformed
in interfaceActionListener
-
copyFiles
-
getFileChooser
-