Package org.gnome.gtk
Enum Class FileChooserAction
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<FileChooserAction>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum FileChooserAction
extends Enum<FileChooserAction>
implements Enumeration
Describes whether a
GtkFileChooser
is being used to open existing files
or to save to a possibly new file.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates open mode.Indicates save mode.Indicates an Open mode for selecting folders. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the FileChooserAction classint
getValue()
Get the numeric value of this enumstatic FileChooserAction
of
(int value) Create a new FileChooserAction for the provided valuestatic FileChooserAction
Returns the enum constant of this class with the specified name.static FileChooserAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
Indicates open mode. The file chooser will only let the user pick an existing file. -
SAVE
Indicates save mode. The file chooser will let the user pick an existing file, or type in a new filename. -
SELECT_FOLDER
Indicates an Open mode for selecting folders. The file chooser will let the user pick an existing folder.
-
-
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
-
of
Create a new FileChooserAction for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-