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

Method setIcon

CodenameOne/src/com/codename1/impl/VServAds.java:193–199  ·  view source on GitHub ↗
(Image icon)

Source from the content-addressed store, hash-verified

191 Button adComponent = new Button() {
192
193 @Override
194 public void setIcon(Image icon) {
195 if (icon != null && isScaleMode()) {
196 icon = icon.scaledWidth(Display.getInstance().getDisplayWidth());
197 }
198 super.setIcon(icon);
199 }
200
201 };
202 adComponent.setUIID("Container");

Callers

nothing calls this directly

Calls 5

getInstanceMethod · 0.95
isScaleModeMethod · 0.80
setIconMethod · 0.65
scaledWidthMethod · 0.45
getDisplayWidthMethod · 0.45

Tested by

no test coverage detected