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

Method initLaf

CodenameOne/src/com/codename1/ui/Label.java:561–579  ·  view source on GitHub ↗
(UIManager uim)

Source from the content-addressed store, hash-verified

559 }
560
561 @Override
562 protected void initLaf(UIManager uim) {
563 if (uim == getUIManager() && isInitialized()) { //NOPMD CompareObjectsWithEquals
564 return;
565 }
566 super.initLaf(uim);
567 String uiid = getUIID();
568 if (uiid != null && uiid.length() > 0) {
569 String iconUiid = uim.getIconUIIDFor(uiid);
570 if (iconUiid != null) {
571 setIconUIID(iconUiid);
572 if (materialIcon != 0) {
573 FontImage.setMaterialIcon(this, materialIcon, materialIconSize);
574 } else if (fontIcon != 0) {
575 FontImage.setFontIcon(this, font, fontIcon, fontIconSize);
576 }
577 }
578 }
579 }
580
581 /// {@inheritDoc}
582 @Override

Callers

nothing calls this directly

Calls 8

lengthMethod · 0.95
setIconUIIDMethod · 0.95
setMaterialIconMethod · 0.95
setFontIconMethod · 0.95
getIconUIIDForMethod · 0.80
getUIManagerMethod · 0.45
isInitializedMethod · 0.45
getUIIDMethod · 0.45

Tested by

no test coverage detected