Holder
Object Hierarchy:
Gda.Holder
Gda.Holder
Gda.Holder
GLib.Object
GLib.Object
GLib.Object->Gda.Holder
Gda.Lockable
Gda.Lockable
Gda.Lockable->Gda.Holder
Description:
[
CCode ( type_id =
"gda_holder_get_type ()" ) ]
public class Holder :
Object ,
Lockable
Content:
Properties:
Static methods:
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 not null
,
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 not null
, 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 make bind_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 the model
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
is null
).
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gda.Lockable