#include <mw/AknGridM.h>
class CAknGridM : public CTextListBoxModel |
Public Member Functions | |
---|---|
CAknGridM() | |
virtual | ~CAknGridM() |
virtual IMPORT_C TBool | IndexContainsData(TInt) |
IMPORT_C TInt | IndexOfFirstDataItem() |
IMPORT_C TInt | IndexOfLastDataItem() |
virtual IMPORT_C TPtrC | ItemText(TInt) |
virtual IMPORT_C TInt | NumberOfData() |
virtual IMPORT_C TInt | NumberOfItems() |
IMPORT_C void | SetStartCells(TInt) |
Inherited Attributes | |
---|---|
CTextListBoxModel::iItemTextArray |
Model class to CAknGrid. Usually this class object is instantiated automatically during the construction phase of CAknGrid object.If programmer wants to provide their own model they must instantiate grid model class object of their own and give it to the CAknGrid object using the SetModel function before calling the ConstructL/ConstructFromResourceL function of CAknGrid.
IMPORT_C TInt | IndexOfFirstDataItem | ( | ) | const |
Gets the index of the first data item in the model.
Returns: Index of the first data item if data exists in model. Returns -1 if no data exists.
IMPORT_C TInt | IndexOfLastDataItem | ( | ) | const |
Gets the index of the last data item in the model.
Returns: Index of the last data item if data exists in model. Returns -1 if no data exists.
Reimplemented from CTextListBoxModel::ItemText(TInt)const
Gets the text of given index. No check is made that the item index given is a valid grid index. A check should be made using IndexContainsData before the function is called. Empty cells at the start should be taken in account of the index given.
Parameter | Description |
---|---|
aItemIndex | Index of the grid. |
Returns: a Pointer descriptor to the associated item text for a cell.
IMPORT_C TInt | NumberOfData | ( | ) | const [virtual] |
Gives the number of data cells in the grid.
Returns: Number of the non empty cells in the grid.
IMPORT_C TInt | NumberOfItems | ( | ) | const [virtual] |
Reimplemented from CTextListBoxModel::NumberOfItems()const
Access to the number of items in the arrays.
Returns: Number of cells within the grid (including empty cells).
IMPORT_C void | SetStartCells | ( | TInt | aNumEmpty | ) |
This function sets the number of empty data cells at the start of the grid.
Parameter | Description |
---|---|
aNumEmpty | Number of empty cells. |