public interface SipCommFileChooser
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTORIES_ONLY
Instruction to display only directories in
file chooser dialog.
|
static int |
FILES_ONLY
Instruction to display only files.
|
static int |
LOAD_FILE_OPERATION
Allows to request a 'load file' dialog (optional)
|
static int |
SAVE_FILE_OPERATION
Allows to request a 'save file' dialog (optional)
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(SipCommFileFilter filter)
Adds a file filter to this dialog.
|
java.io.File |
getApprovedFile()
Returns the selected file by the user from the dialog.
|
java.io.File |
getFileFromDialog()
Shows the dialog and returns the selected file.
|
SipCommFileFilter |
getUsedFilter()
Returns the filter the user has chosen for saving a file.
|
void |
setFileFilter(SipCommFileFilter filter)
Sets a file filter to this dialog.
|
void |
setSelectionMode(int mode)
Change the selection mode for the file choose.
|
void |
setStartPath(java.lang.String path)
Sets the default path to be considered for browsing among files.
|
static final int LOAD_FILE_OPERATION
static final int SAVE_FILE_OPERATION
static final int FILES_ONLY
static final int DIRECTORIES_ONLY
void setSelectionMode(int mode)
mode
- the mode to use.java.io.File getApprovedFile()
void setStartPath(java.lang.String path)
path
- the default start path for this dialogjava.io.File getFileFromDialog()
void addFilter(SipCommFileFilter filter)
filter
- the filter to addvoid setFileFilter(SipCommFileFilter filter)
filter
- the filter to addSipCommFileFilter getUsedFilter()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.