Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codenameone/CodenameOne
/ setSelectedIndex
Method
setSelectedIndex
CodenameOne/src/com/codename1/ui/List.java:477–479 ·
view source on GitHub ↗
(int index)
Source
from the content-addressed store, hash-verified
475
///
476
/// - `index`: the current selected offset in the list
477
public
void
setSelectedIndex(
int
index) {
478
setSelectedIndex(index, true);
479
}
480
481
/// {@inheritDoc}
482
@Override
Callers
14
dataChanged
Method · 0.95
keyReleased
Method · 0.95
pointerReleasedImpl
Method · 0.95
animate
Method · 0.95
populate
Method · 0.95
listSelectionReflectsModel
Method · 0.95
testGetSelectedItem
Method · 0.95
testGetSelectedIndex
Method · 0.95
testSetSelectedIndex
Method · 0.95
testAddSelectionListener
Method · 0.95
testListWithSingleItem
Method · 0.95
testScrollToSelected
Method · 0.95
Calls
5
selectElement
Method · 0.95
setSelectedIndex
Method · 0.65
revalidate
Method · 0.65
isInitialized
Method · 0.45
getComponentForm
Method · 0.45
Tested by
10
populate
Method · 0.76
listSelectionReflectsModel
Method · 0.76
testGetSelectedItem
Method · 0.76
testGetSelectedIndex
Method · 0.76
testSetSelectedIndex
Method · 0.76
testAddSelectionListener
Method · 0.76
testListWithSingleItem
Method · 0.76
testScrollToSelected
Method · 0.76
rendererAppliesMapValuesAndSelectionListener
Method · 0.76
spinnerRendererCalculatesPerspectiveAroundSelection
Method · 0.76