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

Method initLaf

CodenameOne/src/com/codename1/ui/Form.java:1410–1429  ·  view source on GitHub ↗
(UIManager uim)

Source from the content-addressed store, hash-verified

1408
1409 /// {@inheritDoc}
1410 @Override
1411 protected void initLaf(UIManager uim) {
1412 super.initLaf(uim);
1413 LookAndFeel laf = uim.getLookAndFeel();
1414 transitionOutAnimator = laf.getDefaultFormTransitionOut();
1415 transitionInAnimator = laf.getDefaultFormTransitionIn();
1416 focusScrolling = laf.isFocusScrolling();
1417 if (menuBar == null || !menuBar.getClass().equals(laf.getMenuBarClass())) {
1418 try {
1419 menuBar = (MenuBar) laf.getMenuBarClass().newInstance();
1420 } catch (Exception ex) {
1421 Log.e(ex);
1422 menuBar = new MenuBar();
1423 }
1424 menuBar.initMenuBar(this);
1425 }
1426
1427 tintColor = laf.getDefaultFormTintColor();
1428 tactileTouchDuration = laf.getTactileTouchDuration();
1429 }
1430
1431 /// Gets the current dragged Component
1432 Component getDraggedComponent() {

Callers 2

showMethod · 0.95
showModalMethod · 0.95

Calls 12

isFocusScrollingMethod · 0.95
getMenuBarClassMethod · 0.95
eMethod · 0.95
getLookAndFeelMethod · 0.80
equalsMethod · 0.65
newInstanceMethod · 0.65
getClassMethod · 0.45
initMenuBarMethod · 0.45

Tested by

no test coverage detected