|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SipCommFileChooser
The purpose of this interface is to provide an unique way to access to the methods of JFileChooser (javax.swing) or FileDialog (java.awt). It's interesting to use FileDialog under Mac OS X because it uses the native user interface for file selection provided by Mac OS which is more practical than the user interface performed by a JFileChooser (on Mac). Therefore, under other platforms (Microsoft Windows, Linux), the use of JFileChooser instead of FileDialog performs a better user interface for browsing among a file hierarchy.
| Field Summary | |
|---|---|
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) |
| Method Summary | |
|---|---|
void |
addFilter(SipCommFileFilter filter)
Adds a file filter to this dialog. |
File |
getApprovedFile()
Returns the selected file by the user from the dialog. |
File |
getFileFromDialog()
Shows the dialog and returns the selected file. |
SipCommFileFilter |
getUsedFilter()
Returns the filter the user has chosen for saving a file. |
void |
setSelectionMode(int mode)
Change the selection mode for the file choose. |
void |
setStartPath(String path)
Sets the default path to be considered for browsing among files. |
| Field Detail |
|---|
static final int LOAD_FILE_OPERATION
static final int SAVE_FILE_OPERATION
static final int FILES_ONLY
static final int DIRECTORIES_ONLY
| Method Detail |
|---|
void setSelectionMode(int mode)
mode - the mode to use.File getApprovedFile()
void setStartPath(String path)
path - the default start path for this dialogFile getFileFromDialog()
void addFilter(SipCommFileFilter filter)
filter - the filter to addSipCommFileFilter getUsedFilter()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||