Package com.io7m.jwheatsheaf.api
Enum Class JWFileChooserAction
- All Implemented Interfaces:
Serializable
,Comparable<JWFileChooserAction>
,Constable
A specification of the action the file chooser is performing. This
affects the behaviour of the chooser.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user is choosing a single file that may be created by the application.The user is choosing a set of existing files.The user is choosing a single existing file. -
Method Summary
Modifier and TypeMethodDescriptionstatic JWFileChooserAction
Returns the enum constant of this class with the specified name.static JWFileChooserAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN_EXISTING_SINGLE
The user is choosing a single existing file. This means that a file (or directory) must be selected in the directory table for the "OK" button to be enabled. -
OPEN_EXISTING_MULTIPLE
The user is choosing a set of existing files. This means that at least one file (or directory) must be selected in the directory table for the "OK" button to be enabled. -
CREATE
The user is choosing a single file that may be created by the application. This means that a either name must be specified in the file name field, or a file must be selected in the directory table for the for the "OK" button to be enabled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-