public enum FileSelectionMode extends java.lang.Enum<FileSelectionMode>
Enum Constant and Description |
---|
DIRECTORIES_ONLY
Only show directories in the file chooser.
|
FILES_AND_DIRECTORIES
Show both files and directories in the file chooser.
|
FILES_ONLY
Only show files in the file chooser.
|
Modifier and Type | Method and Description |
---|---|
int |
getJFileChooserMode()
Convert to an int value.
|
static FileSelectionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileSelectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSelectionMode FILES_ONLY
public static final FileSelectionMode DIRECTORIES_ONLY
public static final FileSelectionMode FILES_AND_DIRECTORIES
public static FileSelectionMode[] values()
for (FileSelectionMode c : FileSelectionMode.values()) System.out.println(c);
public static FileSelectionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getJFileChooserMode()