public enum FileChooserMode extends java.lang.Enum<FileChooserMode>
Enum Constant and Description |
---|
Open
Requires that the file exists before allowing the user to pick it.
|
OpenFolder
Like Open, but selects a folder.
|
OpenMultiple
Like Open, but allows picking multiple files to open.
|
Save
Allows picking a nonexistent file, and prompts to overwrite if the file already exists.
|
Modifier and Type | Method and Description |
---|---|
static FileChooserMode |
valueOf(int value) |
static FileChooserMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static FileChooserMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final FileChooserMode Open
public static final FileChooserMode OpenMultiple
public static final FileChooserMode OpenFolder
public static final FileChooserMode Save
public static FileChooserMode[] values()
for (FileChooserMode c : FileChooserMode.values()) System.out.println(c);
public static FileChooserMode 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 name
java.lang.NullPointerException
- if the argument is null
public static FileChooserMode valueOf(int value)