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

Method initFocused

CodenameOne/src/com/codename1/ui/Form.java:2544–2558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2542 }
2543
2544 void initFocused() {
2545 if (focused == null) {
2546 Component focusable = formLayeredPane != null ?
2547 formLayeredPane.findFirstFocusable() :
2548 null;
2549 if (focusable == null) {
2550 focusable = getActualPane().findFirstFocusable();
2551 }
2552 setFocused(focusable);
2553 if (!Display.getInstance().shouldRenderSelection()) {
2554 return;
2555 }
2556 layoutContainer();
2557 }
2558 }
2559
2560 /// Displays the current form on the screen
2561 public void show() {

Callers 4

showMethod · 0.95
showModalMethod · 0.95
keyPressedMethod · 0.95

Calls 6

getActualPaneMethod · 0.95
setFocusedMethod · 0.95
getInstanceMethod · 0.95
findFirstFocusableMethod · 0.45
shouldRenderSelectionMethod · 0.45
layoutContainerMethod · 0.45

Tested by

no test coverage detected