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

Method initTabFocus

CodenameOne/src/com/codename1/ui/Tabs.java:1508–1521  ·  view source on GitHub ↗
(Component tab, Component content)

Source from the content-addressed store, hash-verified

1506 }
1507
1508 private void initTabFocus(Component tab, Component content) {
1509 if (content.isFocusable()) {
1510 tab.setFocusable(true);
1511 return;
1512 }
1513
1514 if (content instanceof Container) {
1515 Component focus = ((Container) content).findFirstFocusable();
1516 if (focus != null) {
1517 tab.setFocusable(true);
1518 }
1519 }
1520
1521 }
1522
1523 /// Indicates that a tab should change when the focus changes without the user physically pressing a button
1524 ///

Callers 1

initTabsFocusMethod · 0.95

Calls 3

isFocusableMethod · 0.65
setFocusableMethod · 0.65
findFirstFocusableMethod · 0.45

Tested by

no test coverage detected