#include <ElementFormControlDataSelect.h>


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. | |
| Rocket::Controls::ElementFormControlDataSelect::ElementFormControlDataSelect | ( | const Rocket::Core::String & | tag | ) |
Constructs a new ElementFormControlDataSelect. This should not be called directly; use the Factory instead.
| [in] | tag | The tag the element was declared as in RML. |
| void Rocket::Controls::ElementFormControlDataSelect::SetDataSource | ( | const Rocket::Core::String & | data_source | ) |
Sets the data source the control's options are driven from.
| [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.
| [in] | changed_attributes | List of changed attributes on the element. |
Reimplemented from Rocket::Controls::ElementFormControl.