class CAknGridM : public CTextListBoxModel |
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.
Series60 0.9
Public Member Functions | |
---|---|
CAknGridM() | |
~CAknGridM() | |
IMPORT_C TBool | IndexContainsData(TInt) |
IMPORT_C TInt | IndexOfFirstDataItem() |
IMPORT_C TInt | IndexOfLastDataItem() |
IMPORT_C TPtrC | ItemText(TInt) |
IMPORT_C TInt | NumberOfData() |
IMPORT_C TInt | NumberOfItems() |
IMPORT_C void | SetStartCells(TInt) |
Private Attributes | |
---|---|
TInt | iEmptyCellsAtEnd |
TInt | iEmptyCellsAtStart |
TInt | iSpare |
Inherited Attributes | |
---|---|
CTextListBoxModel::iItemTextArray |
IMPORT_C TBool | IndexContainsData | ( | TInt | aDataIndex | ) | const [virtual] |
Tests if the given cell index has data. ETrue if the data index given is a data cell within the grid otherwise returns EFalse.
TInt aDataIndex | Index to the item to be checked. |
IMPORT_C TInt | IndexOfFirstDataItem | ( | ) | const |
Gets the index of the first data item in the model. 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. Index of the last data item if data exists in model. Returns -1 if no data exists.
IMPORT_C TPtrC | ItemText | ( | TInt | aItemIndex | ) | const [virtual] |
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. a Pointer descriptor to the associated item text for a cell.
TInt aItemIndex | Index of the grid. |
IMPORT_C TInt | NumberOfData | ( | ) | const [virtual] |
Gives the number of data cells in the grid. Number of the non empty cells in the grid.
IMPORT_C TInt | NumberOfItems | ( | ) | const [virtual] |
Access to the number of items in the arrays. 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.
TInt aNumEmpty | Number of empty cells. |