public class JIPipeDesktop extends Object
public static Path openFile(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)extensionFilters
- optional extension filters. the first one is chosen automaticallypublic static Path saveFile(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)extensionFilters
- extension filters. the first one is chosen automaticallypublic static Path openPath(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static Path savePath(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static Path openDirectory(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static Path saveDirectory(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static List<Path> openFiles(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static List<Path> openDirectories(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static List<Path> openPaths(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)public static Path selectSingle(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, PathIOMode ioMode, PathType pathMode, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)ioMode
- whether to load or savepathMode
- which types of paths are returnedextensionFilters
- passed if a file is opened/savedpublic static List<Path> selectMulti(Component parent, JIPipeWorkbench workbench, JIPipeFileChooserApplicationSettings.LastDirectoryKey key, String title, HTMLText description, PathIOMode ioMode, PathType pathMode, FileNameExtensionFilter... extensionFilters)
parent
- parent componentworkbench
- the workbenchkey
- location where the dialog is openedtitle
- dialog titledescription
- optional description (only supported by specific file chooser types)ioMode
- whether to load or savepathMode
- which types of paths are returnedCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.