Enum Class ResponseType

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

@Generated("org.javagi.JavaGI") @Deprecated public enum ResponseType extends Enum<ResponseType> implements Enumeration
Deprecated.
There is no replacement.

Predefined values for use as response ids in gtk_dialog_add_button().

All predefined values are negative; GTK leaves values of 0 or greater for application-defined response ids.

  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated.
    Generic response id, not used by GTK dialogs
    Deprecated.
    Returned by Apply buttons in GTK dialogs
    Deprecated.
    Returned by Cancel buttons in GTK dialogs
    Deprecated.
    Returned by Close buttons in GTK dialogs
    Deprecated.
    Returned if the dialog is deleted
    Deprecated.
    Returned by Help buttons in GTK dialogs
    Deprecated.
    Returned by No buttons in GTK dialogs
    Deprecated.
    Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed
    Deprecated.
    Returned by OK buttons in GTK dialogs
    Deprecated.
    Generic response id, not used by GTK dialogs
    Deprecated.
    Returned by Yes buttons in GTK dialogs
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Deprecated.
    Get the GType of the ResponseType class.
    int
    Deprecated.
    Get the numeric value of this enum
    of(int value)
    Deprecated.
    Create a new ResponseType for the provided value
    of(MemorySegment address)
    Deprecated.
    Create a new ResponseType for the value in the provided memory address.
    Deprecated.
    Returns the enum constant of this class with the specified name.
    static ResponseType[]
    Deprecated.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final ResponseType NONE
      Deprecated.
      Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed
    • REJECT

      public static final ResponseType REJECT
      Deprecated.
      Generic response id, not used by GTK dialogs
    • ACCEPT

      public static final ResponseType ACCEPT
      Deprecated.
      Generic response id, not used by GTK dialogs
    • DELETE_EVENT

      public static final ResponseType DELETE_EVENT
      Deprecated.
      Returned if the dialog is deleted
    • OK

      public static final ResponseType OK
      Deprecated.
      Returned by OK buttons in GTK dialogs
    • CANCEL

      public static final ResponseType CANCEL
      Deprecated.
      Returned by Cancel buttons in GTK dialogs
    • CLOSE

      public static final ResponseType CLOSE
      Deprecated.
      Returned by Close buttons in GTK dialogs
    • YES

      public static final ResponseType YES
      Deprecated.
      Returned by Yes buttons in GTK dialogs
    • NO

      public static final ResponseType NO
      Deprecated.
      Returned by No buttons in GTK dialogs
    • APPLY

      public static final ResponseType APPLY
      Deprecated.
      Returned by Apply buttons in GTK dialogs
    • HELP

      public static final ResponseType HELP
      Deprecated.
      Returned by Help buttons in GTK dialogs
  • Method Details

    • values

      public static ResponseType[] values()
      Deprecated.
      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 ResponseType valueOf(String name)
      Deprecated.
      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 ResponseType of(int value)
      Deprecated.
      Create a new ResponseType for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Deprecated.
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static ResponseType of(MemorySegment address)
      Deprecated.
      Create a new ResponseType 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()
      Deprecated.
      Get the GType of the ResponseType class.
      Returns:
      the GType