wxPg::wxWindow_list_updater Class Reference

Base updater for window. More...

Inheritance diagram for wxPg::wxWindow_list_updater:

wxPg::wxItemContainer_list_updater

List of all members.

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.


Detailed Description

Base updater for window.

Derive new window updater for any new wxWindow descendant you want to be supported by Row_binding.


Constructor & Destructor Documentation

wxPg::wxWindow_list_updater::wxWindow_list_updater ( wxWindow *  win  )  [explicit]

Constructor.

Parameters:
win - wxWindow to be updated.

virtual wxPg::wxWindow_list_updater::~wxWindow_list_updater (  )  [inline, virtual]

Destructor.


Member Function Documentation

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.

Parameters:
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.

Returns:
true to delete, false to keep.

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.

Parameters:
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.

Parameters:
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.

Returns:
true to be used as function object, false otherwise.

wxWindow* wxPg::wxWindow_list_updater::window (  )  [inline]

Get window, updated by this object.

Returns:
window, updated by this object.


Generated on Sat Sep 5 23:00:40 2009 for wxPostgres by  doxygen 1.5.8