04-03-2013 04:06 AM
Please don't duplicate topics - If anybody knows the answer they'll answer in their own time. Posting the same question repeatedly won't get you an answer any quicker.
04-03-2013 04:31 AM
In my case I have a listview which can be filtered by three different types as well as having a text filter.
In order to implement this I created a custom C++ class which manages the objects currently in the datamodel.
My data items, once instantiated are children of my custom class and the custom class maintains an array which indicates which items should be displayed at any one time. When the filter criteria changes my custom class adds/removes the data items from the datamodel as requied.
I'm sorry I havn't the time to knock up an example. But hopefully this will give you an idea on how to tackle your issue.
04-03-2013 07:34 AM - edited 04-03-2013 07:40 AM
Any example would be specific to a situation and would probably not apply in your case. Better would be for you to try what has been suggested.
But there is more documentation to help you.
Have you been through this tutorial and seen how a DataModel supplies items to a ListView:
Once you have been through this, then the following KB article will help I suspect:
I also found the following interesting reading:
Using the last two references you should be able to figure out what you need to know.
Can you please not post the same question twice, you were asked not to do this often enough on the Java forum to know better.
More information in your other Thread: