|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JFileChooser
edu.rice.cs.util.swing.DirectoryChooser
public class DirectoryChooser
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFileChooser |
---|
JFileChooser.AccessibleJFileChooser |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected Component |
_owner
GUI component that owns the dialog (if any) for this directory chooser. |
protected File |
_root
File system root for chooser |
Fields inherited from class javax.swing.JComponent |
---|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DirectoryChooser()
Creates a DirectoryChooser rooted at file system root, allowing only a single selection. |
|
DirectoryChooser(Component owner)
Creates a DirectoryChooser rooted at the file system root, allowing only single selection. |
|
DirectoryChooser(Component owner,
boolean allowMultiple)
Creates a DirectoryChooser rooted at the file system root, allowing multiple selection as specified. |
|
DirectoryChooser(Component owner,
File root)
Creates a DirectoryChooser with the given root, allowing only a single selection. |
|
DirectoryChooser(Component owner,
File root,
boolean allowMultiple,
boolean showHidden)
Creates a DirectoryChooser with the given root, allowing multiple selections as specified. |
Method Summary | |
---|---|
File[] |
getSelectedDirectories()
returns which directories were selected in the tree |
File |
getSelectedDirectory()
returns which directory was selected in the tree |
void |
setOwner(Component owner)
Set the owner of this DirectoryChooser. |
int |
showDialog()
Shows the dialog with the same selection as the last time the dialog was shown. |
int |
showDialog(File initialSelection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Component _owner
protected File _root
Constructor Detail |
---|
public DirectoryChooser()
public DirectoryChooser(Component owner)
public DirectoryChooser(Component owner, boolean allowMultiple)
allowMultiple
- whether to allow multiple selectionpublic DirectoryChooser(Component owner, File root)
root
- the root directory to display in the treepublic DirectoryChooser(Component owner, File root, boolean allowMultiple, boolean showHidden)
root
- the root directory to display in the tree. If null, then show entire file systemallowMultiple
- whether to allow multiple selectionMethod Detail |
---|
public int showDialog(File initialSelection)
public void setOwner(Component owner)
public int showDialog()
public File[] getSelectedDirectories()
public File getSelectedDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |