Rocket::Controls::ElementFormControlDataSelect Class Reference

#include <ElementFormControlDataSelect.h>

Inheritance diagram for Rocket::Controls::ElementFormControlDataSelect:
Collaboration diagram for Rocket::Controls::ElementFormControlDataSelect:

Public Member Functions

 ElementFormControlDataSelect (const Rocket::Core::String &tag)
void SetDataSource (const Rocket::Core::String &data_source)

Protected Member Functions

virtual void OnUpdate ()
virtual void OnAttributeChange (const Core::AttributeNameList &changed_attributes)
virtual void OnDataSourceDestroy (DataSource *data_source)
 Detaches from the data source and rebuilds the options.
virtual void OnRowAdd (DataSource *data_source, const Rocket::Core::String &table, int first_row_added, int num_rows_added)
 Rebuilds the available options from the data source.
virtual void OnRowRemove (DataSource *data_source, const Rocket::Core::String &table, int first_row_removed, int num_rows_removed)
 Rebuilds the available options from the data source.
virtual void OnRowChange (DataSource *data_source, const Rocket::Core::String &table, int first_row_changed, int num_rows_changed)
 Rebuilds the available options from the data source.
virtual void OnRowChange (DataSource *data_source, const Rocket::Core::String &table)
 Rebuilds the available options from the data source.

Detailed Description

A drop-down select form control driven from a data source.

Author:
Peter Curry

Constructor & Destructor Documentation

Rocket::Controls::ElementFormControlDataSelect::ElementFormControlDataSelect ( const Rocket::Core::String tag  ) 

Constructs a new ElementFormControlDataSelect. This should not be called directly; use the Factory instead.

Parameters:
[in] tag The tag the element was declared as in RML.


Member Function Documentation

void Rocket::Controls::ElementFormControlDataSelect::SetDataSource ( const Rocket::Core::String data_source  ) 

Sets the data source the control's options are driven from.

Parameters:
[in] data_source The name of the new data source.

void Rocket::Controls::ElementFormControlDataSelect::OnUpdate (  )  [protected, virtual]

If a new data source has been set on the control, this will attach to it and build the initial options.

Reimplemented from Rocket::Controls::ElementFormControlSelect.

void Rocket::Controls::ElementFormControlDataSelect::OnAttributeChange ( const Core::AttributeNameList &  changed_attributes  )  [protected, virtual]

Checks for changes to the data source or formatting attributes.

Parameters:
[in] changed_attributes List of changed attributes on the element.

Reimplemented from Rocket::Controls::ElementFormControl.


The documentation for this class was generated from the following files: