Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

RFE: Add the get- and setSelectedIndex() to ContainerList to have same API as List #292

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ContainerList is missing the get- and setSelectedIndex() that the List has. 
This makes it a bit less easy to use the ContainerList as a drop in 
replacement. 

All this RFE requires is simply adding the following to ContainerList: 

    public int getSelectedIndex() {
        return getModel().getSelectedIndex();
    }

    public void setSelectedIndex(int index) {
        getModel().setSelectedIndex(index);
    }

I've done this myself, but would be nice to have by default. 

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ch.hj...@gmail.com on 8 Aug 2012 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by shai.almog on 8 Aug 2012 at 6:51

GoogleCodeExporter commented 9 years ago
fixed, thanks

Original comment by cf27...@gmail.com on 9 Sep 2012 at 12:08