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

Method isSingleFocusMode

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

Source from the content-addressed store, hash-verified

3856 ///
3857 /// true if there is one focusable component in this form, false for 0 or more
3858 public boolean isSingleFocusMode() {
3859 if (formLayeredPane != null) {
3860 return countFocusables(formLayeredPane) + countFocusables(getActualPane()) < 2;
3861 }
3862 return isSingleFocusMode(0, getActualPane()) == 1;
3863 }
3864
3865 private int countFocusables(Container c) {
3866 int count = 0;

Callers 2

setHandlesInputMethod · 0.95
actionPerformedMethod · 0.80

Calls 5

countFocusablesMethod · 0.95
getActualPaneMethod · 0.95
isFocusableMethod · 0.95
getComponentCountMethod · 0.65
getComponentAtMethod · 0.45

Tested by

no test coverage detected