Enum Class FileChooserAction

java.lang.Object
java.lang.Enum<FileChooserAction>
org.gnome.gtk.FileChooserAction
All Implemented Interfaces:
Serializable, Comparable<FileChooserAction>, Constable, Enumeration

@Generated("org.javagi.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.
  • Enum Constant Details

    • OPEN

      public static final FileChooserAction OPEN
      Indicates open mode. The file chooser will only let the user pick an existing file.
    • SAVE

      public static final FileChooserAction SAVE
      Indicates save mode. The file chooser will let the user pick an existing file, or type in a new filename.
    • SELECT_FOLDER

      public static final FileChooserAction SELECT_FOLDER
      Indicates an Open mode for selecting folders. The file chooser will let the user pick an existing folder.
  • Method Details

    • values

      public static FileChooserAction[] 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

      public static FileChooserAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static FileChooserAction of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static FileChooserAction of(MemorySegment address)
      Create a new FileChooserAction for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the FileChooserAction class.
      Returns:
      the GType