|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.accendia.netstart.client.service.JSecureFileChooser
public class JSecureFileChooser
Provides the method for the user to select files the application is allowed to write or read and returns FileProxy objects for the selected files. The user is in full control over which files are read and written by the application.
| Constructor Summary | |
|---|---|
JSecureFileChooser()
Creates a JSecureFileChooser instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSelectedFile()
|
boolean |
isAcceptAllFileFilterUsed()
|
boolean |
isMultiSelectionEnabled()
|
void |
setAcceptAllFileFilterUsed(boolean b)
Sets the flag that indicates whether the accept all file filter is used. |
void |
setFilterExtensions(java.lang.String[] extensions)
Sets the list of filter extensions. |
void |
setMultiSelectionEnabled(boolean b)
Sets the flag that allows the user to select multiple files. |
void |
setSelectedFile(java.lang.String fileName)
Sets the initial file selection. |
FileProxy[] |
showOpenDialog(java.awt.Component parent)
Displays a file chooser dialog that allows the user to select files the application is allowed to read. |
FileProxy[] |
showSaveDialog(java.awt.Component parent)
Displays a file chooser dialog that allows the user to select files the application is allowed to write. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSecureFileChooser()
| Method Detail |
|---|
public void setFilterExtensions(java.lang.String[] extensions)
extensions - The array of filter extensions for the file chooser dialogs.public void setMultiSelectionEnabled(boolean b)
b - true if the user is allowed to select multiple files.public boolean isMultiSelectionEnabled()
public void setAcceptAllFileFilterUsed(boolean b)
b - true if the accept all file filter will be used.public boolean isAcceptAllFileFilterUsed()
public void setSelectedFile(java.lang.String fileName)
fileName - The name of the file that must be initially selected.public java.lang.String getSelectedFile()
public FileProxy[] showOpenDialog(java.awt.Component parent)
parent - The parent window of the dialog.
public FileProxy[] showSaveDialog(java.awt.Component parent)
parent - The parent window of the dialog.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||