Holder
Object Hierarchy:
Description:
Namespace: Gda
Package: libgda-5.0
Content:
Properties:
- public string description { owned get; set; }
- public Holder full_bind { owned get; set; }
- public Type g_type { get; set construct; }
- public string id { owned get; set; }
- public string name { owned get; set; }
- public bool not_null { get; set; }
- public Holder simple_bind { owned get; set; }
- public int source_column { get; set; }
- public DataModel source_model { owned get; set; }
- public bool validate_changes { get; set; }
Defines if the "validate-change" signal gets emitted when the holder's value changes.
Static methods:
- public static Quark error_quark ()
Creation methods:
Methods:
- public virtual void att_changed (string att_name, Value att_value)
- public Holder copy ()
Copy constructor.
- public void force_invalid ()
Forces a holder to be invalid; to set it valid again, a new value must be assigned to it using set_value or take_value.
- public void force_invalid_e (owned Error? error)
Forces a holder to be invalid; to set it valid again, a new value must be assigned to it using set_value or take_value.
- public string get_alphanum_id ()
Get an "encoded" version of this's name.
- public unowned Value? get_attribute (string attribute)
Get the value associated to a named attribute.
- public unowned Holder get_bind ()
Get the holder which makes this change its value when the holder's value is changed.
- public unowned Value? get_default_value ()
Get the default value held into the holder.
- public Type get_g_type ()
- public unowned string get_id ()
Get the ID of this.
- public bool get_not_null ()
Get wether the holder can be NULL or not
- public unowned DataModel get_source_model (int col)
If set_source_model has been used to provide a hint that this's value should be among the values contained in a column of a data model, then this method returns which data model, and if
col
is notnull
, then it is set to the restricting column as well. - public unowned Value? get_value ()
Get the value held into the holder.
- public string get_value_str (DataHandler? dh)
Same functionality as get_value except that it returns the value as a string (the conversion is done using
dh
if notnull
, or the default data handler otherwise). - public bool is_valid ()
Get the validity of this (that is, of the value held by this)
- public bool is_valid_e () throws Error
Get the validity of this (that is, of the value held by this)
- public void set_attribute (string attribute, Value value, DestroyNotify destroy)
Set the value associated to a named attribute.
- public bool set_bind (Holder bind_to) throws Error
Sets this to change when
bind_to
changes (and does not makebind_to
change when this changes). - public void set_default_value (Value value)
Sets the default value within the holder.
- public void set_not_null (bool not_null)
Sets if the holder can have a NULL value.
- public bool set_source_model (DataModel model, int col) throws Error
Sets an hint that this's values should be restricted among the values contained in the
col
column of themodel
data model. - public bool set_value (Value? value) throws Error
Sets the value within the holder.
- public bool set_value_str (DataHandler dh, string value) throws Error
Same functionality as set_value except that it uses a string representation of the value to set, which will be converted into a GValue first (using default data handler if
dh
isnull
). - public bool set_value_to_default ()
Set this's value to its default value.
- public Value? take_static_value (Value value, bool value_changed) throws Error
Sets the const value within the holder.
- public bool take_value (owned Value value) throws Error
Sets the value within the holder.
- public bool value_is_default ()
Tells if this's current value is the default one.
Signals:
- public signal void attribute_changed (string att_name, Value att_value)
Gets emitted when any
holder
's attribute has changed - public virtual signal void changed ()
Gets emitted when
holder
's value has changed - public virtual signal void source_changed ()
Gets emitted when the data model in which
holder
's values should be has changed - public virtual signal Error validate_change (Value new_value)
Gets emitted when
holder
is going to change its value.
Inherited Members:
All known members inherited from class GLib.Object