Public Member Functions | |
wxWindow_list_updater (wxWindow *win) | |
Constructor. | |
virtual | ~wxWindow_list_updater () |
Destructor. | |
wxWindow * | window () |
Get window, updated by this object. | |
virtual bool | use_fo () const |
Use as function object. | |
virtual void | begin_update (Result_data_provider *data)=0 |
Start updating window. | |
virtual void | update_row (Result_data_provider *data)=0 |
Update window by current row. | |
virtual void | end_update ()=0 |
End updating window. | |
virtual void | operator() (Result_data_provider *data)=0 |
Update window all-at-once. | |
virtual bool | delete_me () |
Should this object be deleted by binding object. |
Derive new window updater for any new wxWindow descendant you want to be supported by Row_binding.
wxPg::wxWindow_list_updater::wxWindow_list_updater | ( | wxWindow * | win | ) | [explicit] |
Constructor.
win | - wxWindow to be updated. |
virtual wxPg::wxWindow_list_updater::~wxWindow_list_updater | ( | ) | [inline, virtual] |
Destructor.
virtual void wxPg::wxWindow_list_updater::begin_update | ( | Result_data_provider * | data | ) | [pure virtual] |
Start updating window.
Called when starting update and only if use_fo() return false.
data | - data provider to obtain data from, do restore it to the state before the call! |
Implemented in wxPg::wxItemContainer_list_updater.
virtual bool wxPg::wxWindow_list_updater::delete_me | ( | ) | [inline, virtual] |
Should this object be deleted by binding object.
This method indicates, whether binding object is responsible for deleting this object.
virtual void wxPg::wxWindow_list_updater::end_update | ( | ) | [pure virtual] |
End updating window.
Called after calls to update_row(). Is used only if use_fo() return false.
Implemented in wxPg::wxItemContainer_list_updater.
virtual void wxPg::wxWindow_list_updater::operator() | ( | Result_data_provider * | data | ) | [pure virtual] |
Update window all-at-once.
This is called only if use_fo returns true and is called only once.
data | - data provider to obtain data from, do restore it to the state before the call! |
Implemented in wxPg::wxItemContainer_list_updater.
virtual void wxPg::wxWindow_list_updater::update_row | ( | Result_data_provider * | data | ) | [pure virtual] |
Update window by current row.
Called for each row in data, after a call to begin_update(). Is used only if use_fo() return false.
data | - data provider to obtain data from, do restore it to the state before the call! |
Implemented in wxPg::wxItemContainer_list_updater.
virtual bool wxPg::wxWindow_list_updater::use_fo | ( | ) | const [inline, virtual] |
Use as function object.
If returns true, this object is called as function (operator()), to do all-at-once update.
If returns false, begin_update(), update_row() and end_update() are used.
wxWindow* wxPg::wxWindow_list_updater::window | ( | ) | [inline] |
Get window, updated by this object.