MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / initComponentImpl

Method initComponentImpl

CodenameOne/src/com/codename1/ui/List.java:313–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312 /// {@inheritDoc}
313 @Override
314 void initComponentImpl() {
315 dataChanged(0, 0);
316 // lazily bind listeners to prevent a memory leak in cases where models
317 // are stored separately from view
318 bindListeners();
319 super.initComponentImpl();
320 int index = model.getSelectedIndex();
321 if (index >= 0) {
322 model.setSelectedIndex(index);
323 }
324 }
325
326 /// {@inheritDoc}
327 @Override

Callers

nothing calls this directly

Calls 4

dataChangedMethod · 0.95
bindListenersMethod · 0.95
getSelectedIndexMethod · 0.65
setSelectedIndexMethod · 0.65

Tested by

no test coverage detected