Package org.gnome.gtk
Enum Class ResponseType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<ResponseType>
,Constable
@Generated("io.github.jwharm.JavaGI")
@Deprecated
public enum ResponseType
extends Enum<ResponseType>
implements Enumeration
Deprecated.
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Generic response id, not used by GTK dialogsDeprecated.Returned by Apply buttons in GTK dialogsDeprecated.Returned by Cancel buttons in GTK dialogsDeprecated.Returned by Close buttons in GTK dialogsDeprecated.Returned if the dialog is deletedDeprecated.Returned by Help buttons in GTK dialogsDeprecated.Returned by No buttons in GTK dialogsDeprecated.Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyedDeprecated.Returned by OK buttons in GTK dialogsDeprecated.Generic response id, not used by GTK dialogsDeprecated.Returned by Yes buttons in GTK dialogs -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Deprecated.Get the GType of the ResponseType classint
getValue()
Deprecated.Get the numeric value of this enumstatic ResponseType
of
(int value) Deprecated.Create a new ResponseType for the provided valuestatic ResponseType
Deprecated.Returns the enum constant of this class with the specified name.static ResponseType[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Deprecated.Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed -
REJECT
-
ACCEPT
-
DELETE_EVENT
-
OK
-
CANCEL
-
CLOSE
-
YES
-
NO
-
APPLY
-
HELP
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-