Rocket::Controls::ElementDataGrid Class Reference
#include <ElementDataGrid.h>
Detailed Description
A table driven from a data source.
- Author:
- Robert Curry
Member Function Documentation
| void Rocket::Controls::ElementDataGrid::SetDataSource |
( |
const Rocket::Core::String & |
data_source_name |
) |
|
Sets a new data source for the contents of the data grid.
- Parameters:
-
| [in] | data_source_name | The name of the new data source. |
Adds a column to the table.
- Parameters:
-
| [in] | fields | A comma-separated list of fields that this column reads from the data source. |
| [in] | formatter | The name of the data formatter to be used to format the raw column data into RML. |
| [in] | initial_width | The initial width, in pixels, of the column. |
| [in] | header_rml | The RML to use as the column header. |
- Returns:
- True if the column was added successfully, false if not.
Adds a column to the table.
- Parameters:
-
| [in] | fields | A comma-separated list of fields that this column reads from the data source. |
| [in] | formatter | The name of the data formatter to be used to format the raw column data into RML. |
| [in] | initial_width | The initial width, in pixels, of the column. |
| [in] | header_element | The element hierarchy to use as the column header. |
Adds a new row to the table. This is only called from child rows.
- Parameters:
-
| [in] | parent | The parent row that the row is being added under. |
| [in] | index | The index of the child, relative to its parent. |
- Returns:
- A pointer to the newly created row.
| void Rocket::Controls::ElementDataGrid::RemoveRows |
( |
int |
index, |
|
|
int |
num_rows = 1 | |
|
) |
| | |
Removes a series of rows from the table.
- Parameters:
-
| [in] | index | The index of the first row, relative to the table. |
| [in] | num_rows | The number of rows to remove. Defaults to one. |
Returns the row at the given index in the table.
- Parameters:
-
| [in] | index | The index of the row, relative to the table. |
| void Rocket::Controls::ElementDataGrid::ProcessEvent |
( |
Core::Event & |
event |
) |
[protected, virtual] |
Called for every event sent to this element or one of its descendants.
- Parameters:
-
| [in] | event | The event to process. |
Reimplemented from Rocket::Core::Element.
| void Rocket::Controls::ElementDataGrid::GetInnerRML |
( |
Rocket::Core::String & |
content |
) |
const [protected, virtual] |
Gets the markup and content of the element.
- Parameters:
-
| content[out] | The content of the element. |
Reimplemented from Rocket::Core::Element.
The documentation for this class was generated from the following files: