Package org.gnome.gtk
Enum Class PropagationPhase
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<PropagationPhase>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum PropagationPhase
extends Enum<PropagationPhase>
implements Enumeration
Describes the stage at which events are fed into a
EventController
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEvents are delivered in the bubble phase.Events are delivered in the capture phase.Events are not delivered.Events are delivered in the default widget event handlers, note that widget implementations must chain up on button, motion, touch and grab broken handlers for controllers in this phase to be run. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the PropagationPhase classint
getValue()
Get the numeric value of this enumstatic PropagationPhase
of
(int value) Create a new PropagationPhase for the provided valuestatic PropagationPhase
Returns the enum constant of this class with the specified name.static PropagationPhase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Events are not delivered. -
CAPTURE
Events are delivered in the capture phase. The capture phase happens before the bubble phase, runs from the toplevel down to the event widget. This option should only be used on containers that might possibly handle events before their children do. -
BUBBLE
Events are delivered in the bubble phase. The bubble phase happens after the capture phase, and before the default handlers are run. This phase runs from the event widget, up to the toplevel. -
TARGET
Events are delivered in the default widget event handlers, note that widget implementations must chain up on button, motion, touch and grab broken handlers for controllers in this phase to be run.
-
-
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 PropagationPhase 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
-