public class RemoteFileChooser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.commons.future.IFuture<javax.swing.JFileChooser> |
filechooser
The file chooser (asynchronously created on first access).
|
protected jadex.bridge.IExternalAccess |
remote
The remote platform access.
|
Constructor and Description |
---|
RemoteFileChooser(jadex.bridge.IExternalAccess remote)
Create a remote file chooser.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<jadex.bridge.service.types.filetransfer.FileData> |
chooseFile(java.lang.String title,
java.lang.String def,
javax.swing.JComponent parent,
int mode,
javax.swing.filechooser.FileFilter filter)
Choose a remote file.
|
jadex.commons.future.IFuture<javax.swing.JFileChooser> |
getFileChooser()
Get or create the file chooser.
|
protected jadex.bridge.IExternalAccess remote
protected jadex.commons.future.IFuture<javax.swing.JFileChooser> filechooser
public RemoteFileChooser(jadex.bridge.IExternalAccess remote)
remote
- The remote platform access.public jadex.commons.future.IFuture<jadex.bridge.service.types.filetransfer.FileData> chooseFile(java.lang.String title, java.lang.String def, javax.swing.JComponent parent, int mode, javax.swing.filechooser.FileFilter filter)
title
- The file chooser title.def
- The default file (if any).filename
- A file name (without path) to use as default (if any).parent
- The parent component.mode
- The file selection mode.filter
- A file filter to use (if any).public jadex.commons.future.IFuture<javax.swing.JFileChooser> getFileChooser()