Hi,
The application which I am playing with is a sort of a 'master-detail'
view. The SourceList is the master and a bunch of iTunesTable s are
the detail. The way I am setting things up, clicking on a different
item in the SourceList will change the table that the user is staring
at.
Now, when the application starts, the program will startup showing a
particular table. I want to programatically highlight the item in the
SourceList whose corresponding table is showing.
I expected an API call of the sort:
SourceListItem item = new SourceListItem("first item");
item.setSelected(true);
I can see that it will be a problem if someone sets multiple items as
selected. Maybe the API couldbe something like:
SourceListItem item = new SourceListItem("first Item");
SourceListItem item1 = new SourceListItem("f item");
SourceList list = new SourceList();
// add items to the list with appropriate categories..
list.setSelected(item); // sets the item as selected and unselects any
previously selected item
If this sounds like a good idea, I will submit an enhancement request.
Gurjeet