public class ClientFileChooserHelper extends java.lang.Object implements BasicFileChooserI
| Constructor and Description |
|---|
ClientFileChooserHelper(SessionI _session,
de.ipcon.db.core.BasicClientContextI _ctx)
Constructor for ClientFileChooserHelper
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
showFileChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String key,
int selectionMode,
boolean quiet,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File preselectedFile,
java.io.File fallbackLastUsedDir,
int dialogType)
Internal and Legacy routing method for single file / directory selections.
|
java.io.File[] |
showFilesChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String key,
int selectionMode,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File fallbackLastUsedDir)
Legacy multiple file routing method.
|
java.io.File |
showFolderChooser(java.lang.String title,
java.lang.String key,
boolean quiet,
java.io.File preselectedFile)
Opens a native dialog strictly tailored to select a FOLDER / DIRECTORY.
|
java.io.File |
showOpenFileChooser(java.lang.String title,
java.lang.String key,
boolean quiet,
javax.swing.filechooser.FileFilter filter)
Opens a native OPEN dialog strictly tailored to select a SINGLE EXISTING FILE.
|
java.io.File[] |
showOpenFilesChooser(java.lang.String title,
java.lang.String key,
javax.swing.filechooser.FileFilter filter,
java.io.File preselectedFile)
Opens a native OPEN dialog configured to select MULTIPLE EXISTING FILES.
|
java.io.File |
showSaveFileChooser(java.lang.String title,
java.lang.String key,
javax.swing.filechooser.FileFilter filter,
boolean quiet,
java.io.File preselectedFile)
Opens a native SAVE dialog with an input field for defining a file name.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshowFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFolderChooser, showFolderChooser, showFolderChooser, showOpenFileChooser, showOpenFileChooser, showOpenFileChooser, showOpenFileChooser, showOpenFilesChooser, showOpenFilesChooser, showOpenFilesChooser, showSaveFileChooser, showSaveFileChooser, showSaveFileChooser, showSaveFileChooser, showSaveFileChooserpublic ClientFileChooserHelper(SessionI _session, de.ipcon.db.core.BasicClientContextI _ctx)
public java.io.File showSaveFileChooser(java.lang.String title,
java.lang.String key,
javax.swing.filechooser.FileFilter filter,
boolean quiet,
java.io.File preselectedFile)
Note: Native OS save dialogs inherently support single-file selection only.
Implementation Note: Routes to the internal method, explicitly requesting a native SAVE dialog.
showSaveFileChooser in interface BasicFileChooserItitle - The title of the dialog.key - The key under which this selection context is stored in the session (LRU dir tracking).filter - The file filter to apply natively.quiet - If true, suppresses the UI if the start directory is already set.preselectedFile - The file to be initially selected (pre-fills the save input field).File to save to, or null if canceled.public java.io.File showOpenFileChooser(java.lang.String title,
java.lang.String key,
boolean quiet,
javax.swing.filechooser.FileFilter filter)
Implementation Note: Routes to the internal method, explicitly requesting a native OPEN dialog.
showOpenFileChooser in interface BasicFileChooserItitle - The title of the dialog.key - The key under which this selection context is stored in the session (LRU dir tracking).quiet - If true, suppresses the UI if the start directory is already set.filter - The file filter to apply.File, or null if canceled.public java.io.File showFolderChooser(java.lang.String title,
java.lang.String key,
boolean quiet,
java.io.File preselectedFile)
Note: Native operating systems enforce directory selection via their "Open" dialog interface, even when the application intends to use the selected folder as a save/export destination.
Implementation Note: Routes to the internal method, explicitly requesting a native OPEN dialog strictly restricted to directories.
showFolderChooser in interface BasicFileChooserItitle - The title of the dialog (e.g. "Select Export Folder").key - The key under which this selection context is stored in the session (LRU dir tracking).quiet - If true, suppresses the UI if the start directory is already set.preselectedFile - An optional directory to navigate into initially. If the directory does not exist, the OS typically falls back to the nearest existing parent.File, or null if canceled.public java.io.File[] showOpenFilesChooser(java.lang.String title,
java.lang.String key,
javax.swing.filechooser.FileFilter filter,
java.io.File preselectedFile)
Implementation Note: Bypasses the single-file router and calls chooseFile directly for native multi-selection.
showOpenFilesChooser in interface BasicFileChooserItitle - The title of the dialog.key - The key under which this selection context is stored in the session (LRU dir tracking).filter - The file filter to apply.preselectedFile - A file to pre-select, positioning the user contextually.File objects, or null if canceled.public java.io.File showFileChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String key,
int selectionMode,
boolean quiet,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File preselectedFile,
java.io.File fallbackLastUsedDir,
int dialogType)
BasicFileChooserIshowFileChooser in interface BasicFileChooserItitle - The dialog title.approveText - The text on the approval button.key - The key under which this selection context is stored in the session (LRU dir tracking).selectionMode - The Swing selection mode constant.quiet - If true, skips the dialog if LRU is known.filter - The file filter to apply.accessory - A custom Swing component (forces Swing fallback natively).preselectedFile - The initially selected file.fallbackLastUsedDir - The directory to start in if no LRU exists.dialogType - The Swing dialog type (Open, Save, Custom).File, or null if canceled.public java.io.File[] showFilesChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String key,
int selectionMode,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File fallbackLastUsedDir)
BasicFileChooserIshowFilesChooser in interface BasicFileChooserItitle - The dialog title.approveText - The text on the approval button.key - The key under which this selection context is stored in the session (LRU dir tracking).selectionMode - The Swing selection mode constant.filter - The file filter to apply.accessory - A custom Swing component (forces Swing fallback natively).fallbackLastUsedDir - The directory to start in if no LRU exists.Files, or null if canceled.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.