Package org.gnome.gio
Enum Class SettingsBindFlags
- All Implemented Interfaces:
Serializable,Comparable<SettingsBindFlags>,Constable,Enumeration
@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 ConstantsEnum ConstantDescriptionEquivalent toG_SETTINGS_BIND_GET|G_SETTINGS_BIND_SETUpdate theGObjectproperty when the setting changes.When set in addition toGio.SettingsBindFlags.GET, set theGObjectproperty value initially from the setting, but do not listen for changes of the settingWhen passed toSettings.bind(java.lang.String, org.gnome.gobject.GObject, java.lang.String, java.util.Set<org.gnome.gio.SettingsBindFlags>), 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 theGObjectproperty changes. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the SettingsBindFlags classintgetValue()Get the numeric value of this enumstatic Set<SettingsBindFlags> of(int flags) Create a newEnumSet<SettingsBindFlags>for the provided bitfieldstatic Set<SettingsBindFlags> of(MemorySegment address) Create a newEnumSet<SettingsBindFlags>for the bitfield in the provided memory address.static SettingsBindFlagsReturns 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 theGObjectproperty when the setting changes. It is an error to use this flag if the property is not writable. -
SET
Update the setting when theGObjectproperty 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 toGio.SettingsBindFlags.GET, set theGObjectproperty value initially from the setting, but do not listen for changes of the setting -
INVERT_BOOLEAN
When passed toSettings.bind(java.lang.String, org.gnome.gobject.GObject, java.lang.String, java.util.Set<org.gnome.gio.SettingsBindFlags>), 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 toSettings.bindWithMapping(java.lang.String, org.gnome.gobject.GObject, java.lang.String, java.util.Set<org.gnome.gio.SettingsBindFlags>, org.gnome.gobject.Closure, org.gnome.gobject.Closure).
-
-
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
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a newEnumSet<SettingsBindFlags>for the provided bitfield- Parameters:
flags- the SettingsBindFlags bitfield- Returns:
- the EnumSet for the provided bitfield
-
of
Create a newEnumSet<SettingsBindFlags>for the bitfield in the provided memory address.- Parameters:
address- the memory address holding a bitfield value- Returns:
- the EnumSet for the bitfield in the provided memory address
-
getType
Get the GType of the SettingsBindFlags class- Returns:
- the GType
-