Set
Object Hierarchy:
Gda.Set
Gda.Set
Gda.Set
GLib.Object
GLib.Object
GLib.Object->Gda.Set
Description:
[ CCode ( type_id = "gda_set_get_type ()" ) ]public class Set : Object
Content:
Properties:
Static methods:
public static Quark error_quark ()
public static Set new_inline (int nb, ...)
Creates a new Set containing holders
defined by each triplet in ... For each triplet (id, Glib type and value), the value must be of the correct type (gchar * if type is
G_STRING, ...)
Creation methods:
public Set (SList <Holder > holders)
Creates a new Set object, and populates it
with the list given as argument.
public Set.from_spec_node (unowned Node * xml_spec) throws Error
Creates a new Set object from the
xml_spec
specifications
public Set.from_spec_string (string xml_spec) throws Error
Creates a new Set object from the
xml_spec
specifications
public Set.read_only (SList <Holder > holders)
Creates a new Set like
Set , but does not allow modifications to any of the
Holder object in holders
.
Methods:
public bool add_holder (Holder holder)
Adds holder
to the list of holders managed within
this .
public Set copy ()
Creates a new Set object, copy of
this
public unowned SetGroup get_group (Holder holder)
Finds a SetGroup which
lists a SetNode containing holder
, don't modify the returned structure.
public unowned Holder get_holder (string holder_id)
public unowned Value ? get_holder_value (string holder_id)
Get the value of the Holder
which ID is holder_id
public unowned SetNode get_node (Holder holder)
Finds a SetNode holding
information for holder
, don't modify the returned structure
public unowned Holder get_nth_holder (int pos)
Finds a Holder using its
position
public unowned SetSource get_source (Holder holder)
Finds a SetSource which
contains the DataModel restricting the possible values of holder
,
don't modify the returned structure.
public unowned SetSource get_source_for_model (DataModel model)
Finds the SetSource
structure used in this for which model
is a the data model (the returned structure
should not be modified).
public bool is_valid () throws Error
This method tells if all this 's
Holder objects are valid, and if they represent a valid combination of values, as defined
by rules external to Libgda: the "validate-set" signal is emitted and if none of the signal handlers return an error, then the
returned value is TRUE, otherwise the return value is FALSE as soon as a signal handler returns an error.
public void merge_with_set (Set set_to_merge)
Add to this all the holders of
set_to_merge
.
public void remove_holder (Holder holder)
Removes a Holder from the
list of holders managed by this
public void replace_source_model (SetSource source, DataModel model)
Replaces source
.
Signals:
public virtual signal void holder_attr_changed (Holder holder, string attr_name, Value attr_value)
Gets emitted when an attribute for any of the
Holder objects managed by set
has changed
public virtual signal void holder_changed (Holder holder)
public virtual signal void holder_type_set (Holder holder)
Gets emitted when holder
in set
has its type
finally set, in case it was GDA_TYPE_NULL
public virtual signal void public_data_changed ()
Gets emitted when set
's public data (#GdaSetNode,
SetGroup or SetSource values) have
changed
public virtual signal void source_model_changed (void * source)
Gets emitted when the data model in source
has changed
public virtual signal Error validate_holder_change (Holder holder, Value new_value)
Gets emitted when a Holder
's in set
is going to change its value.
public virtual signal Error validate_set ()
Gets emitted when
is_valid is called, use this signal to control which combination of values set
's holder can have (for example to
implement some business rules)
Fields:
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