| |
|
| javax.swing.JFileChooser edu.rice.cs.util.swing.DirectoryChooser
Field Summary | |
protected Component | _owner GUI component that owns the dialog (if any) for this directory chooser. | protected File | _root |
Constructor Summary | |
public | DirectoryChooser() Creates a DirectoryChooser rooted at file system root, allowing only a single selection. | public | DirectoryChooser(Component owner) Creates a DirectoryChooser rooted at the file system root, allowing only single selection. | public | DirectoryChooser(Component owner, boolean allowMultiple) Creates a DirectoryChooser rooted at the file system root, allowing multiple selection as specified. | public | DirectoryChooser(Component owner, File root) Creates a DirectoryChooser with the given root, allowing only a single selection. | public | DirectoryChooser(Component owner, File root, boolean allowMultiple, boolean showHidden) Creates a DirectoryChooser with the given root, allowing multiple selections as specified.
Parameters: root - the root directory to display in the tree. |
_owner | protected Component _owner(Code) | | GUI component that owns the dialog (if any) for this directory chooser.
|
_root | protected File _root(Code) | | File system root for chooser
|
DirectoryChooser | public DirectoryChooser()(Code) | | Creates a DirectoryChooser rooted at file system root, allowing only a single selection.
|
DirectoryChooser | public DirectoryChooser(Component owner)(Code) | | Creates a DirectoryChooser rooted at the file system root, allowing only single selection.
|
DirectoryChooser | public DirectoryChooser(Component owner, boolean allowMultiple)(Code) | | Creates a DirectoryChooser rooted at the file system root, allowing multiple selection as specified.
Parameters: allowMultiple - whether to allow multiple selection |
DirectoryChooser | public DirectoryChooser(Component owner, File root)(Code) | | Creates a DirectoryChooser with the given root, allowing only a single selection.
Parameters: root - the root directory to display in the tree |
DirectoryChooser | public DirectoryChooser(Component owner, File root, boolean allowMultiple, boolean showHidden)(Code) | | Creates a DirectoryChooser with the given root, allowing multiple selections as specified.
Parameters: root - the root directory to display in the tree. If null, then show entire file system Parameters: allowMultiple - whether to allow multiple selection |
getSelectedDirectories | public File[] getSelectedDirectories()(Code) | | returns which directories were selected in the tree
an array of files for the selected directories |
getSelectedDirectory | public File getSelectedDirectory()(Code) | | returns which directory was selected in the tree
the file for the selected directory, null if none selected |
setOwner | public void setOwner(Component owner)(Code) | | Set the owner of this DirectoryChooser.
|
showDialog | public int showDialog(File initialSelection)(Code) | | |
showDialog | public int showDialog()(Code) | | Shows the dialog with the same selection as the last time the dialog was shown. If this is the first time it is
shown, then the root is selected.
|
|
|
|