Package org.gnome.gio
Enum Class SettingsBindFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<SettingsBindFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum SettingsBindFlags
extends Enum<SettingsBindFlags>
implements Enumeration
Flags used when creating a binding. These flags determine in which
direction the binding works. The default is to synchronize in both
directions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEquivalent toG_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET
Update theGObject
property when the setting changes.When set in addition toGET
, set theGObject
property value initially from the setting, but do not listen for changes of the settingWhen passed to g_settings_bind(), uses a pair of mapping functions that invert the boolean value when mapping between the setting and the property.Do not try to bind a "sensitivity" property to the writability of the settingUpdate the setting when theGObject
property changes. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the SettingsBindFlags classint
getValue()
Get the numeric value of this enumstatic SettingsBindFlags
of
(int value) Create a new SettingsBindFlags for the provided valuestatic SettingsBindFlags
Returns the enum constant of this class with the specified name.static SettingsBindFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Equivalent toG_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET
-
GET
Update theGObject
property when the setting changes. It is an error to use this flag if the property is not writable. -
SET
Update the setting when theGObject
property changes. It is an error to use this flag if the property is not readable. -
NO_SENSITIVITY
Do not try to bind a "sensitivity" property to the writability of the setting -
GET_NO_CHANGES
When set in addition toGET
, set theGObject
property value initially from the setting, but do not listen for changes of the setting -
INVERT_BOOLEAN
When passed to g_settings_bind(), uses a pair of mapping functions that invert the boolean value when mapping between the setting and the property. The setting and property must both be booleans. You cannot pass this flag to g_settings_bind_with_mapping().
-
-
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 SettingsBindFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield 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
-