API published in: S60 1st Ed
Link against: avkon.lib eikcore.lib
Required Capabilities
None
#include <aknutils.h>
This class is designed to be stored inside a listbox model and the model should call this in its NumberOfItems()
and ItemText()
implementation. The model must be given to this class and it must have MatchableTextArray()
implemented correctly. HandleOfferKeyEvent()
should be called from the same offer key event implementation which forwards the keys to listbox and search field
If you have both markable list and find at the same time, you should call ResetFiltering()
before executing the command for marked items. This ensures that the ListBox's SelectionIndexes()
returns all items instead of only those items that are visible. Selected *items can be found under CAknListBoxFilterItems::SelectionIndexes()
.
Public Member Functions |
|
IMPORT_C | CAknListBoxFilterItems (CEikListBox *aListBox, CAknSearchField *aSearchField, MListBoxModel *aModel, CListBoxView *aView) |
Base class default constructor. |
|
IMPORT_C void | ConstructL () |
This is for setting empty list text. |
|
IMPORT_C void | ResetFilteringL () |
This function is to be called when filter is cleared. |
|
IMPORT_C void | UpdateCachedDataL () |
This function will update filter items state from the search field and listbox. |
|
IMPORT_C | ~CAknListBoxFilterItems () |
Destructor. |
|
IMPORT_C CArrayFix< TInt > * | SelectionIndexes () |
This one gives all indices, not just the ones that are visible. |
|
IMPORT_C void | UpdateSelectionIndexesL () |
This will synchronise the selection indices from the listbox. |
|
IMPORT_C void | UpdateSelectionIndexL (TInt aVisibleIndex) |
This will synchronise the selected index from the listbox. |
|
IMPORT_C TInt | FilteredNumberOfItems () const |
This is used to ask how many list items are available after filter has been used. |
|
IMPORT_C TInt | FilteredItemIndex (TInt aVisibleItemIndex) const |
This is used to fetch the content of a list item after filter has been used. |
|
IMPORT_C TInt | NonFilteredNumberOfItems () const |
Returns number of original list items. |
|
IMPORT_C TInt | VisibleItemIndex (TInt aOriginalIndex) const |
Finds the list item on the screen when the item array index is given. |
|
IMPORT_C TPtrC | DefaultMatchableItemFromItem (TPtrC aText) |
For building MdcaPoint() of the model's MatchableTextArray . |
|
IMPORT_C void | HandleOfferkeyEventL () |
Applications should call this in OfferKeyEventL() which gives keys to listbox and search field. |
|
IMPORT_C void | HandleItemArrayChangeL () |
When you change the list item array you should call this method. |
|
IMPORT_C void | SetObserver (MCoeControlObserver *aObserver) |
Sets the observer. |
|
IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
Editor sends messages to this object as control events. |
|
IMPORT_C void | DeferredSendKeyEventToFepL (TUint aValue) |
Sends key events to FEP. |
|
IMPORT_C void | SetParentControl (CCoeControl *aControl) |
AknFind uses this to inform us who is the parent control owning the listbox and search field. |
|
IMPORT_C void | SetPopup () |
AknFind uses this to inform us that we have popup find. |
|
IMPORT_C void | SetListBox (CEikListBox *aListBox) |
Attaches or detaches list used by the filtering. |
|
IMPORT_C void | SetSearchField (CAknSearchField *aSearchField) |
Attaches or detaches find pane used by the filtering. |
|
IMPORT_C void | SetModel (MListBoxModel *aModel) |
Attaches or detaches list model used by the filtering. |
|
IMPORT_C void | SetView (CListBoxView *aView) |
Attaches or detaches list view used by the filtering. |
|
IMPORT_C CCoeControl * | FindBox () const |
This function just returns pointer to the search field. |
|
Static Public Member Functions |
|
static TInt | IdleCallBack (TAny *aFilterItems) |
This gets called from DeferredSendKeyEventToFepL() . |
|
Base class default constructor.
|
|
Destructor. Frees all resources owned by the object prior to its destruction. |
|
This is for setting empty list text. |
|
For building
This method builds the default value for
|
|
Sends key events to FEP.
This is used to resend key event to FEP if
|
|
This is used to fetch the content of a list item after filter has been used.
|
|
This is used to ask how many list items are available after filter has been used. Counts visible list items.
|
|
This function just returns pointer to the search field.
|
|
Editor sends messages to this object as control events.
|
|
When you change the list item array you should call this method. |
|
Applications should call this in |
|
This gets called from This does the actual sending of a key event. Does not support more than one event at the time.
|
|
Returns number of original list items.
|
|
This function is to be called when filter is cleared. |
|
This one gives all indices, not just the ones that are visible.
|
|
Attaches or detaches list used by the filtering.
|
|
Attaches or detaches list model used by the filtering.
|
|
Sets the observer.
|
|
This control should be window-owning control and it will be used to resize the listbox when changes to the filtering happens.
|
|
Applications shouldn't call this. |
|
Attaches or detaches find pane used by the filtering.
|
|
Attaches or detaches list view used by the filtering.
|
|
This function will update filter items state from the search field and listbox. Also updates selection indexes. |
|
This will synchronise the selection indices from the listbox.
If you use |
|
This will synchronise the selected index from the listbox.
If you use
|
|
Finds the list item on the screen when the item array index is given.
|