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