DataProxy
Object Hierarchy:
Description:
Namespace: Gda
Package: libgda-6.0
Content:
Properties:
- public bool cache_changes { get; set; }
Defines how changes kept in the data proxy are handled when the proxied data model is changed (using the "model" property).
- public bool defer_sync { get; set; }
- public DataModel model { owned get; set construct; }
- public bool prepend_null_entry { get; set; }
- public int sample_size { get; set construct; }
Static methods:
- public static Quark error_quark ()
Creation methods:
- public DataProxy (DataModel model)
Creates a new proxy for
model
. - public DataProxy.with_data_model (DataModel model)
Creates a new proxy for
model
.
Methods:
- public void @delete (int proxy_row)
Marks the row
proxy_row
to be deleted - public void alter_value_attributes (int proxy_row, int col, ValueAttribute alter_flags)
Alters the attributes of the value stored at (proxy_row, col) in this.
- public bool apply_all_changes () throws Error
Apply all the changes stored in the proxy to the proxied data model.
- public bool apply_row_changes (int proxy_row) throws Error
Commits the modified data in the proxy back into the DataModel.
- public bool cancel_all_changes ()
Cancel all the changes stored in the proxy (the this will be reset to its state as it was just after creation).
- public void cancel_row_changes (int proxy_row, int col)
Resets data at the corresponding row and column.
- public unowned string get_filter_expr ()
Get the current filter expression used by this .
- public int get_filtered_n_rows ()
Get the total number of filtered rows in this if a filter has been applied.
- public int get_n_modified_rows ()
Get the number of rows which have been modified in the proxy (the sum of rows existing in the proxied data model which have been modified, and new rows).
- public int get_n_new_rows ()
Get the number of rows which have been added to this and which are not part of the proxied data model.
- public unowned DataModel get_proxied_model ()
Fetch the DataModel which this does proxy
- public int get_proxied_model_n_cols ()
Get the number of columns in the proxied data model
- public int get_proxied_model_n_rows ()
Get the number of rows in the proxied data model
- public int get_proxied_model_row (int proxy_row)
Get the this's proxied model row corresponding to
proxy_row
- public int get_sample_end ()
Get the number of the last row to be available in this (in reference to the proxied data model)
- public int get_sample_size ()
Get the size of each chunk of data displayed at a time.
- public int get_sample_start ()
Get the number of the first row to be available in this (in reference to the proxied data model)
- public ValueAttribute get_value_attributes (int proxy_row, int col)
Get the attributes of the value stored at (proxy_row, col) in this, which is an ORed value of ValueAttribute flags
- public SList<unowned Value?> get_values (int proxy_row, int[] cols_index)
Retrieve a whole list of values from the this data model.
- public bool has_changed ()
Tells if this contains any modifications not applied to the proxied data model.
- public bool is_read_only ()
- public bool row_has_changed (int proxy_row)
Tells if the row number
proxy_row
has changed - public bool row_is_deleted (int proxy_row)
Tells if the row number
proxy_row
is marked to be deleted. - public bool row_is_inserted (int proxy_row)
Tells if the row number
proxy_row
is a row which has been inserted in this (and is thus not in the proxied data model). - public bool set_filter_expr (string? filter_expr) throws Error
Sets a filter among the rows presented by this .
- public bool set_ordering_column (int col) throws Error
Orders by the
col
column - public void set_sample_size (int sample_size)
Sets the size of each chunk of data to display: the maximum number of rows which can be "displayed" at a time (the maximum number of rows which this pretends to have).
- public void set_sample_start (int sample_start)
Sets the number of the first row to be available in this (in reference to the proxied data model)
- public void undelete (int proxy_row)
Remove the "to be deleted" mark at the row
proxy_row
, if it existed.
Signals:
- public virtual signal void filter_changed ()
Gets emitted when
proxy
's filter has been changed - public virtual signal void row_changes_applied (int row, int proxied_row)
Gets emitted when
proxy
has committed a row change to the proxied data model. - public virtual signal void row_delete_changed (int row, bool to_be_deleted)
Gets emitted whenever a row has been marked to be deleted, or has been unmarked to be deleted
- public virtual signal void sample_changed (int sample_start, int sample_end)
Gets emitted whenever
proxy
's sample size has been changed. - public virtual signal void sample_size_changed (int sample_size)
Gets emitted whenever
proxy
's sample size has been changed - public virtual signal Error validate_row_changes (int row, int proxied_row)
Gets emitted when
proxy
is about to commit a row change to the proxied data model.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gda.DataModel