wx.dataview.DataViewListStore is a specialised wx.dataview.DataViewModel for storing a simple table of data.
Since it derives from wx.dataview.DataViewIndexListModel its data is be accessed by row (i.e. by index) instead of only by wx.dataview.DataViewItem.
This class actually stores the values (therefore its name) and implements all virtual methods from the base classes so it can be used directly without having to derive any class from it, but it is mostly used from within wx.dataview.DataViewListCtrl.
Constructor. |
|
Appends a data column. |
|
Appends an item (=row) and fills it with values. |
|
Delete all item (=all rows) in the store. |
|
Delete the item (=row) at position pos. |
|
Overridden from wx.dataview.DataViewModel. |
|
Overridden from wx.dataview.DataViewModel. |
|
Returns the number of items (=rows) in the control. |
|
Returns the client data associated with the item. |
|
Overridden from wx.dataview.DataViewIndexListModel. |
|
Inserts a data column before pos. |
|
Inserts an item (=row) and fills it with values. |
|
Prepends a data column. |
|
Prepends an item (=row) and fills it with values. |
|
Sets the client data associated with the item. |
|
Overridden from wx.dataview.DataViewIndexListModel. |
See |
|
See |
Possible constructors:
DataViewListStore()
DataViewListStore is a specialised DataViewModel for storing a simple table of data.
Constructor.
Appends a data column.
variantype indicates the type of values store in the column.
This does not automatically fill in any (default) values in rows which exist in the store already.
varianttype (string) –
Appends an item (=row) and fills it with values.
The values must match the values specifies in the column in number and type. No (default) values are filled in automatically.
values (VariantVector
) –
data (wx.UIntPtr) –
Delete all item (=all rows) in the store.
Delete the item (=row) at position pos.
pos –
Overridden from wx.dataview.DataViewModel.
int
Overridden from wx.dataview.DataViewModel.
col (int) –
string
Returns the number of items (=rows) in the control.
int
New in version 2.9.4.
Returns the client data associated with the item.
item (wx.dataview.DataViewItem) –
wx.UIntPtr
New in version 2.9.4.
See also
Overridden from wx.dataview.DataViewIndexListModel.
row (int) –
col (int) –
value
Inserts a data column before pos.
variantype indicates the type of values store in the column.
This does not automatically fill in any (default) values in rows which exist in the store already.
pos (int) –
varianttype (string) –
Inserts an item (=row) and fills it with values.
The values must match the values specifies in the column in number and type. No (default) values are filled in automatically.
row (int) –
values (VariantVector
) –
data (wx.UIntPtr) –
Prepends a data column.
variantype indicates the type of values store in the column.
This does not automatically fill in any (default) values in rows which exist in the store already.
varianttype (string) –
Prepends an item (=row) and fills it with values.
The values must match the values specifies in the column in number and type. No (default) values are filled in automatically.
values (VariantVector
) –
data (wx.UIntPtr) –
Sets the client data associated with the item.
Notice that this class does not take ownership of the passed in pointer and will not delete it.
item (wx.dataview.DataViewItem) –
data (wx.UIntPtr) –
New in version 2.9.4.
See also
Overridden from wx.dataview.DataViewIndexListModel.
value (DVCVariant) –
row (int) –
col (int) –
bool
See GetColumnCount
See GetItemCount