![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Model class. More...
#include <ilviews/dataccess/gadgets/gdtmodel.h>
Public Member Functions | |
| IliMappingInspectorModel () | |
Initializes a new IliMappingInspectorModel instance. | |
| virtual const char * | getColumnLabel (IlInt dsi, IlInt colno) const |
| Returns the column label for a data source. | |
| virtual IlInt | getColumnMaximum (IlInt dsi) const |
| Returns the column count maximum for a data source. | |
| virtual IlInt | getColumnMinimum (IlInt dsi) const |
| Returns the column count minimum for a data source. | |
| virtual const char * | getDataSourceLabel (IlInt dsi) const |
| Returns the data source label. | |
| virtual IlInt | getDataSourceMaximum () const |
| Returns the data source count maximum. | |
| virtual IlInt | getDataSourceMinimum () const |
| Returns the data source count minimum. | |
| virtual const char * | getName () const |
| Returns the model name. | |
| virtual IlBoolean | isMandatoryColumn (IlInt dsi, IlInt colno) const |
Returns IlTrue if the column is mandatory. | |
| virtual IlBoolean | isMandatoryDataSource (IlInt dsi) const |
Returns IlTrue if the data source is mandatory. | |
| virtual IlBoolean | isValidColumnType (IlInt dsi, IlInt colno, IliDatatype *typ) const |
Returns IlTrue if the column type is valid. | |
| virtual IlBoolean | isValidDefinition (IliString &msg) const |
Returns IlTrue if the data sources and columns definition is valid. | |
Model class.
Library: dbgadget
The class IliMappingInspectorModel defines the interface for all models which are used to define the data sources and columns for a gadget. These model types are used by the inspectors.
| virtual const char* IliMappingInspectorModel::getColumnLabel | ( | IlInt | dsi, | |
| IlInt | colno | |||
| ) | const [virtual] |
Returns the column label for a data source.
| dsi | The data source index. | |
| colno | The column index. |
null string. Returns the column count maximum for a data source.
| dsi | The data source index. |
-1, the number of columns is unlimited. By default, this function returns 1. Returns the column count minimum for a data source.
| dsi | The data source index. |
0. | virtual const char* IliMappingInspectorModel::getDataSourceLabel | ( | IlInt | dsi | ) | const [virtual] |
Returns the data source label.
| dsi | The data source index. |
null string. | virtual IlInt IliMappingInspectorModel::getDataSourceMaximum | ( | ) | const [virtual] |
Returns the data source count maximum.
-1, the number of data sources is unlimited. By default, this function returns 1. | virtual IlInt IliMappingInspectorModel::getDataSourceMinimum | ( | ) | const [virtual] |
Returns the data source count minimum.
0. | virtual const char* IliMappingInspectorModel::getName | ( | ) | const [virtual] |
| virtual IlBoolean IliMappingInspectorModel::isMandatoryColumn | ( | IlInt | dsi, | |
| IlInt | colno | |||
| ) | const [virtual] |
Returns IlTrue if the column is mandatory.
If a column is mandatory, the gadget inspector displays an error message if the user does not provide the column name.
| dsi | The data source index. | |
| colno | The column index. |
IlTrue if the column is mandatory. By default, this function returns IlTrue. Returns IlTrue if the data source is mandatory.
If a data source is mandatory, the gadget inspector displays an error message if the user does not provide the data source name.
| dsi | The data source index. |
IlTrue if the data source is mandatory. By default, this function returns IlTrue. | virtual IlBoolean IliMappingInspectorModel::isValidColumnType | ( | IlInt | dsi, | |
| IlInt | colno, | |||
| IliDatatype * | typ | |||
| ) | const [virtual] |
Returns IlTrue if the column type is valid.
| dsi | The data source index. | |
| colno | The column index. | |
| typ | The column type. |
IlTrue if the column is valid. By default, this function returns IlTrue. © Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.